From b635c62d16ebdbccc542c532d8b4e28f1bd4d0df Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Tue, 12 May 2015 09:04:07 -0500 Subject: [PATCH] Add contexts --- test/api/pushNotifications.coffee | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/api/pushNotifications.coffee b/test/api/pushNotifications.coffee index b40a271fd0..479a14fe15 100644 --- a/test/api/pushNotifications.coffee +++ b/test/api/pushNotifications.coffee @@ -41,7 +41,7 @@ describe "Push-Notifications", -> it "sends a push notification when invited to a quest" - context "Gifts", -> + context "sending gems from balance", -> recipient = null members = rewire("../../website/src/controllers/members") members.sendMessage = -> true @@ -57,7 +57,7 @@ describe "Push-Notifications", -> done() , false - it "sends a push notification when gifted gems", (done) -> + it "sends a push notification", (done) -> req = { params: { uuid: "uuid" }, body: { @@ -80,4 +80,10 @@ describe "Push-Notifications", -> done() , 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"