Merge branch 'develop' into sabrecat/more-modals
This commit is contained in:
@@ -11,21 +11,6 @@ describe "Push-Notifications", ->
|
||||
before (done) ->
|
||||
registerNewUser(done, true)
|
||||
|
||||
describe "POST /user/pushDevice", ->
|
||||
it "Registers a DeviceID", (done) ->
|
||||
request.post(baseURL + "/user/pushDevice").send(
|
||||
{ regId: "123123", type: "android"}
|
||||
).end (err, res) ->
|
||||
expectCode res, 200
|
||||
|
||||
User.findOne
|
||||
_id: global.user._id
|
||||
, (err, _user) ->
|
||||
expect(_user.pushDevices.length).to.equal 1
|
||||
expect(_user.pushDevices[0].regId).to.equal "123123"
|
||||
|
||||
done()
|
||||
|
||||
describe "Events that send push notifications", ->
|
||||
pushSpy = { sendNotify: sinon.spy() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user