Skip to content

Commit 102b9cb

Browse files
committed
test: fix breaking tests
1 parent 1afdd81 commit 102b9cb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/types/model.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010
import { DateTime } from 'luxon'
1111
import type Hooks from '@poppinss/hooks'
1212
import {
13+
TransactionFn,
1314
DialectContract,
14-
IsolationLevels,
1515
QueryClientContract,
1616
TransactionClientContract,
17-
TransactionFn,
1817
} from './database.js'
1918

2019
import {

test/orm/base_model.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8366,10 +8366,10 @@ test.group('Base Model | transaction', (group) => {
83668366
declare email: string
83678367
}
83688368

8369-
const [userId] = await User.transaction(async (trx) => {
8369+
await User.transaction(async (trx) => {
83708370
return trx.insertQuery().table('users').insert({ username: 'virk' }).returning('id')
83718371
})
8372-
const user = await User.find(userId)
8372+
const user = await User.find(1)
83738373
assert.equal(user!.username, 'virk')
83748374
})
83758375
})

0 commit comments

Comments
 (0)