Skip to content

Commit

Permalink
Fix stubs in worker test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed May 20, 2016
1 parent 3b9fde5 commit 3247271
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions 6-pubsub/test/worker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@ describe('worker.js', function () {
var stubs = {
'./lib/logging': loggingStub,
'@google/cloud-trace': {
start: sinon.stub()
start: sinon.stub(),
'@noCallThru': true
},
'@google/cloud-debug': {}
'@google/cloud-debug': {
'@noCallThru': true
}
};
stubs['./books/model-' + appConfig.get('DATA_BACKEND')] = {
read: function (bookId, cb) {
Expand Down
7 changes: 5 additions & 2 deletions 7-gce/test/worker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@ describe('worker.js', function () {
var stubs = {
'./lib/logging': loggingStub,
'@google/cloud-trace': {
start: sinon.stub()
start: sinon.stub(),
'@noCallThru': true
},
'@google/cloud-debug': {}
'@google/cloud-debug': {
'@noCallThru': true
}
};
stubs['./books/model-' + appConfig.get('DATA_BACKEND')] = {
read: function (bookId, cb) {
Expand Down

0 comments on commit 3247271

Please sign in to comment.