Fix flaky table test.
This commit is contained in:
parent
904476de5c
commit
f67173b757
|
@ -368,10 +368,12 @@ describe("/tables", () => {
|
||||||
.set(config.defaultHeaders())
|
.set(config.defaultHeaders())
|
||||||
.expect("Content-Type", /json/)
|
.expect("Content-Type", /json/)
|
||||||
.expect(200)
|
.expect(200)
|
||||||
const fetchedTable = res.body[0]
|
|
||||||
expect(fetchedTable.name).toEqual(testTable.name)
|
const table = res.body.find((t: Table) => t._id === testTable._id)
|
||||||
expect(fetchedTable.type).toEqual("table")
|
expect(table).toBeDefined()
|
||||||
expect(fetchedTable.sourceType).toEqual("internal")
|
expect(table.name).toEqual(testTable.name)
|
||||||
|
expect(table.type).toEqual("table")
|
||||||
|
expect(table.sourceType).toEqual("internal")
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should apply authorization to endpoint", async () => {
|
it("should apply authorization to endpoint", async () => {
|
||||||
|
|
Loading…
Reference in New Issue