Skip to content

Commit

Permalink
fix: test for mssql
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Feb 16, 2024
1 parent ca31c69 commit 407a789
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/database/drop_tables.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ test.group('Query client | drop tables', (group) => {
table.integer('temp_users_id').unsigned().references('id').inTable('temp_users')
})

await connection.client?.table('temp_users').insert({ id: 1 })
await connection.client?.table('temp_posts').insert({ id: 1, temp_users_id: 1 })
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 client = new QueryClient('dual', connection, createEmitter())
await client.dialect.dropAllTables(['public'])
Expand Down

0 comments on commit 407a789

Please sign in to comment.