Fixing some test issues.
This commit is contained in:
parent
83ddb9c8dd
commit
76eef8d3d4
|
@ -87,7 +87,7 @@ describe("/datasources", () => {
|
|||
expect(contents.rows.length).toEqual(1)
|
||||
|
||||
// update the datasource to remove the variables
|
||||
datasource.config.dynamicVariables = []
|
||||
datasource.config!.dynamicVariables = []
|
||||
const res = await request
|
||||
.put(`/api/datasources/${datasource._id}`)
|
||||
.send(datasource)
|
||||
|
|
|
@ -1064,7 +1064,7 @@ describe("postgres integrations", () => {
|
|||
)
|
||||
expect(response.status).toBe(200)
|
||||
expect(response.body.tableNames).toBeDefined()
|
||||
expect(response.body.tableNames.indexOf(primaryName)).not.toBe(-10)
|
||||
expect(response.body.tableNames.indexOf(primaryName)).not.toBe(-1)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue