Skip to content

Commit

Permalink
test(postgres): fix event emitter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowbeetle committed Jan 19, 2017
1 parent c71bfe7 commit 4e7b120
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/instrumentations/pg/pg.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ describe('pg module wrapper', function () {
throw err
}

var shimmerWrapStub = sandbox.stub(Shimmer, 'wrap', function (nodule, name) {
var shimmerWrapStub = sandbox.stub(Shimmer, 'wrap', function (nodule, name, cb) {
expect(cb).to.be.a('function')
var qryArguments = [qryString]
cb(client.query).apply(client, qryArguments)

expect(fakeWrapQuery).to.have.been.calledWith(
client.query,
Expand Down Expand Up @@ -161,8 +163,10 @@ describe('pg module wrapper', function () {
throw err
}

var shimmerWrapStub = sandbox.stub(Shimmer, 'wrap', function (nodule, name) {
var shimmerWrapStub = sandbox.stub(Shimmer, 'wrap', function (nodule, name, cb) {
expect(cb).to.be.a('function')
var qryArguments = [qryString]
cb(client.query).apply(client, qryArguments)

expect(fakeWrapQuery).to.have.been.calledWith(
client.query,
Expand Down

0 comments on commit 4e7b120

Please sign in to comment.