Skip to content

Commit bd6f3fe

Browse files
committed
Added extra test for isolation level as property of 2nd arg.
1 parent 60d5fc8 commit bd6f3fe

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

spec/integration/transaction.spec.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,17 @@ describe( "Transaction - Integration", () => {
3434
} ).should.eventually.equal( "ReadCommitted" );
3535
} );
3636

37-
it( "should set isolation level", async () => {
37+
it( "should set isolation level as 2nd arg", async () => {
3838
await sql.transaction( async tx => {
3939
return tx.queryValue( isolationLevelQuery );
4040
}, sql.read_uncommitted ).should.eventually.equal( "ReadUncommitted" );
4141
} );
42+
43+
it( "should set isolation level as prop of 2nd arg", async () => {
44+
await sql.transaction( async tx => {
45+
return tx.queryValue( isolationLevelQuery );
46+
}, { isolationLevel: sql.read_uncommitted } ).should.eventually.equal( "ReadUncommitted" );
47+
} );
4248
} );
4349

4450
describe( "rollback", () => {

0 commit comments

Comments
 (0)