Skip to content

Commit

Permalink
test: Add test for the Fluent API
Browse files Browse the repository at this point in the history
Test checks that it isn't actually supported.

See #80.
  • Loading branch information
franky47 committed Aug 30, 2023
1 parent 12be2a7 commit 62055f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tests/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,4 +396,10 @@ describe.each(clients)('integration ($type)', ({ client }) => {
const reached = true
expect(reached).toBe(false)
})
test("Doesn't work with the Fluent API", async () => {
const posts = await client.user.findUnique({ where: { email } }).posts()
for (const post of posts!) {
expect(post.content).toMatch(cloakedStringRegex)
}
})
})

0 comments on commit 62055f4

Please sign in to comment.