From 3a73c390fcbc670c78bd600606a7c233a1bd7992 Mon Sep 17 00:00:00 2001 From: mserranom Date: Wed, 1 Apr 2020 17:03:52 +0200 Subject: [PATCH] Fixed unit test --- services/notifications/test/unit/js/NotificationsTests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/notifications/test/unit/js/NotificationsTests.js b/services/notifications/test/unit/js/NotificationsTests.js index 5683a0c47d..00385d980d 100644 --- a/services/notifications/test/unit/js/NotificationsTests.js +++ b/services/notifications/test/unit/js/NotificationsTests.js @@ -119,7 +119,7 @@ describe('Notifications Tests', function() { sinon.assert.calledWith( this.updateStub, this.expectedQuery, - this.expectedDocument, + { $set: this.expectedDocument }, { upsert: true } ) return done() @@ -154,7 +154,7 @@ describe('Notifications Tests', function() { sinon.assert.calledWith( this.updateStub, this.expectedQuery, - this.expectedDocument, + { $set: this.expectedDocument }, { upsert: true } ) return done() @@ -194,7 +194,7 @@ describe('Notifications Tests', function() { sinon.assert.calledWith( this.updateStub, this.expectedQuery, - this.expectedDocument, + { $set: this.expectedDocument }, { upsert: true } ) return done()