commit 2 refactor
This commit is contained in:
parent
588f666943
commit
32e43c9243
310 changed files with 33318 additions and 31189 deletions
|
|
@ -3,7 +3,7 @@ import {
|
|||
SimplePostgresClient,
|
||||
SimpleQueryBuilder,
|
||||
SimpleTransactionManager,
|
||||
} from '../src/simple-postgres';
|
||||
} from './support/simple-postgres';
|
||||
|
||||
describe('PostgresClient', () => {
|
||||
let client: SimplePostgresClient;
|
||||
|
|
@ -195,7 +195,7 @@ describe('TransactionManager', () => {
|
|||
|
||||
it('should rollback on error', async () => {
|
||||
await expect(
|
||||
manager.transaction(async client => {
|
||||
manager.transaction(async _client => {
|
||||
throw new Error('Transaction failed');
|
||||
})
|
||||
).rejects.toThrow('Transaction failed');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue