mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-27 13:40:00 +00:00
organized push notifications api test
This commit is contained in:
parent
95a90723c8
commit
bf4ecf244c
1 changed files with 15 additions and 12 deletions
|
|
@ -2,9 +2,12 @@
|
|||
|
||||
app = require("../../website/src/server")
|
||||
|
||||
|
||||
describe "Push-Notifications", ->
|
||||
it "Register DeviceID", (done) ->
|
||||
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 (res) ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue