|
@@ -119,7 +119,7 @@ describe('Notifications Tests', function() {
|
|
|
sinon.assert.calledWith(
|
|
sinon.assert.calledWith(
|
|
|
this.updateStub,
|
|
this.updateStub,
|
|
|
this.expectedQuery,
|
|
this.expectedQuery,
|
|
|
- this.expectedDocument,
|
|
|
|
|
|
|
+ { $set: this.expectedDocument },
|
|
|
{ upsert: true }
|
|
{ upsert: true }
|
|
|
)
|
|
)
|
|
|
return done()
|
|
return done()
|
|
@@ -154,7 +154,7 @@ describe('Notifications Tests', function() {
|
|
|
sinon.assert.calledWith(
|
|
sinon.assert.calledWith(
|
|
|
this.updateStub,
|
|
this.updateStub,
|
|
|
this.expectedQuery,
|
|
this.expectedQuery,
|
|
|
- this.expectedDocument,
|
|
|
|
|
|
|
+ { $set: this.expectedDocument },
|
|
|
{ upsert: true }
|
|
{ upsert: true }
|
|
|
)
|
|
)
|
|
|
return done()
|
|
return done()
|
|
@@ -194,7 +194,7 @@ describe('Notifications Tests', function() {
|
|
|
sinon.assert.calledWith(
|
|
sinon.assert.calledWith(
|
|
|
this.updateStub,
|
|
this.updateStub,
|
|
|
this.expectedQuery,
|
|
this.expectedQuery,
|
|
|
- this.expectedDocument,
|
|
|
|
|
|
|
+ { $set: this.expectedDocument },
|
|
|
{ upsert: true }
|
|
{ upsert: true }
|
|
|
)
|
|
)
|
|
|
return done()
|
|
return done()
|