Fixing some test issues.

This commit is contained in:
mike12345567 2023-05-22 16:25:50 +01:00
parent 83ddb9c8dd
commit 76eef8d3d4
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ describe("/datasources", () => {
expect(contents.rows.length).toEqual(1) expect(contents.rows.length).toEqual(1)
// update the datasource to remove the variables // update the datasource to remove the variables
datasource.config.dynamicVariables = [] datasource.config!.dynamicVariables = []
const res = await request const res = await request
.put(`/api/datasources/${datasource._id}`) .put(`/api/datasources/${datasource._id}`)
.send(datasource) .send(datasource)

View File

@ -1064,7 +1064,7 @@ describe("postgres integrations", () => {
) )
expect(response.status).toBe(200) expect(response.status).toBe(200)
expect(response.body.tableNames).toBeDefined() expect(response.body.tableNames).toBeDefined()
expect(response.body.tableNames.indexOf(primaryName)).not.toBe(-10) expect(response.body.tableNames.indexOf(primaryName)).not.toBe(-1)
}) })
}) })
}) })