mserranom 6 лет назад
Родитель
Сommit
3a73c390fc
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      services/notifications/test/unit/js/NotificationsTests.js

+ 3 - 3
services/notifications/test/unit/js/NotificationsTests.js

@@ -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()