From 5385471cb28c825a3c4ff781df2f599fd3f16c7d Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Sun, 14 Jun 2015 17:00:13 -0500 Subject: [PATCH] Fix push notifications test --- test/api/pushNotifications.coffee | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/api/pushNotifications.coffee b/test/api/pushNotifications.coffee index e1f42dd87e..d7c23ce47c 100644 --- a/test/api/pushNotifications.coffee +++ b/test/api/pushNotifications.coffee @@ -199,7 +199,12 @@ describe "Push-Notifications", -> findOne: (arg, arg2, cb) -> cb(null, recipient) update: (arg, arg2, cb) -> - cb(null, user) + if (cb) + return cb(null, user) + else + return { + exec: -> true + } } groups.__set__('User', userMock) groups.__set__('populateQuery',