Add explicit check for the foreign field

This commit is contained in:
adrinr 2023-02-21 09:51:07 +00:00
parent 3c5d5f4c25
commit 483f15a5d6
1 changed files with 3 additions and 0 deletions

View File

@ -438,6 +438,9 @@ describe("row api - postgres", () => {
_id: expect.any(String),
_rev: expect.any(String),
})
expect(res.body.foreignField).toBeUndefined()
expect(
res.body[`fk_${auxPostgresTable.name}_foreignField`]
).toBeDefined()