Skip to content

Commit

Permalink
test(transaction): fix hookContext test
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmukuthu committed Nov 15, 2017
1 parent d2266e4 commit 2ce2ce3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/builder/transaction.js
Expand Up @@ -430,7 +430,7 @@ module.exports = function(knex) {
});
});

it('should passes the hookContext to wrapIdentifier', function () {
it('should pass the hook context to wrapIdentifier', function () {
const originalWrapIdentifier = knex.client.config.wrapIdentifier;
const spy = sinon.spy().named('calledWithContext');

Expand All @@ -449,8 +449,8 @@ module.exports = function(knex) {
.from('accounts')
.hookContext({ foo: 'bar' });
}).then(function() {
expect(spy.callCount).toBe(1);
expect(spy.calledWith({ foo: 'bar' })).toBeTrue();
expect(spy.callCount).to.equal(1);
expect(spy.calledWith({ foo: 'bar' })).to.equal(true);
}).then(function() {
restoreWrapIdentifier();
}).catch(function(e) {
Expand Down

0 comments on commit 2ce2ce3

Please sign in to comment.