mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Add contexts
This commit is contained in:
@@ -41,7 +41,7 @@ describe "Push-Notifications", ->
|
|||||||
|
|
||||||
it "sends a push notification when invited to a quest"
|
it "sends a push notification when invited to a quest"
|
||||||
|
|
||||||
context "Gifts", ->
|
context "sending gems from balance", ->
|
||||||
recipient = null
|
recipient = null
|
||||||
members = rewire("../../website/src/controllers/members")
|
members = rewire("../../website/src/controllers/members")
|
||||||
members.sendMessage = -> true
|
members.sendMessage = -> true
|
||||||
@@ -57,7 +57,7 @@ describe "Push-Notifications", ->
|
|||||||
done()
|
done()
|
||||||
, false
|
, false
|
||||||
|
|
||||||
it "sends a push notification when gifted gems", (done) ->
|
it "sends a push notification", (done) ->
|
||||||
req = {
|
req = {
|
||||||
params: { uuid: "uuid" },
|
params: { uuid: "uuid" },
|
||||||
body: {
|
body: {
|
||||||
@@ -80,4 +80,10 @@ describe "Push-Notifications", ->
|
|||||||
done()
|
done()
|
||||||
, 100
|
, 100
|
||||||
|
|
||||||
it "sends a push notification when gifted a subscription"
|
context "sending gems as a purchased gift", ->
|
||||||
|
|
||||||
|
it "sends a push notification"
|
||||||
|
|
||||||
|
context "sending a subscription as a purchased gift", ->
|
||||||
|
|
||||||
|
it "sends a push notification"
|
||||||
|
|||||||
Reference in New Issue
Block a user