Skip to content

Commit

Permalink
test: fix for mssql
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Feb 16, 2024
1 parent 407a789 commit 94a22b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/database/drop_tables.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ test.group('Query client | drop tables', (group) => {
})

await connection.client?.table('temp_users').insert({})
await connection.client
?.table('temp_posts')
.insert({ temp_users_id: await connection.client?.table('temp_users').select('id').first() })
const user = await connection.client?.table('temp_users').select('id').first()
await connection.client?.table('temp_posts').insert({ temp_users_id: user!.id })

const client = new QueryClient('dual', connection, createEmitter())
await client.dialect.dropAllTables(['public'])
Expand Down

0 comments on commit 94a22b7

Please sign in to comment.