Fix push notifications test

This commit is contained in:
Blade Barringer
2015-06-14 17:00:13 -05:00
parent 14fe29dd4a
commit 5385471cb2
+6 -1
View File
@@ -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',