Add explicit check for the foreign field
This commit is contained in:
parent
3c5d5f4c25
commit
483f15a5d6
|
@ -438,6 +438,9 @@ describe("row api - postgres", () => {
|
||||||
_id: expect.any(String),
|
_id: expect.any(String),
|
||||||
_rev: expect.any(String),
|
_rev: expect.any(String),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
expect(res.body.foreignField).toBeUndefined()
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
res.body[`fk_${auxPostgresTable.name}_foreignField`]
|
res.body[`fk_${auxPostgresTable.name}_foreignField`]
|
||||||
).toBeDefined()
|
).toBeDefined()
|
||||||
|
|
Loading…
Reference in New Issue