Skip to content

Commit

Permalink
🔨 fix new db test
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Mar 15, 2024
1 parent 3d3937b commit 1688723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/tests/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ test("Transaction setup", async () => {

test("Write actions in read-only transactions fail", async () => {
expect(async () => {
await knexReadonlyTransaction(async (trx) => {
return knexReadonlyTransaction(async (trx) => {
await testRw(trx as KnexReadWriteTransaction) // The cast is necessary to not make TypeScript complain and catch this error :)
}, knexInstance)
}).toThrow()
}).rejects.toThrow()
})

0 comments on commit 1688723

Please sign in to comment.