From 5521254cdebe5a8de797fba2a99439b64350efb7 Mon Sep 17 00:00:00 2001 From: Andrew Naylor Date: Mon, 13 Apr 2015 08:22:45 +0100 Subject: [PATCH] More aps properties will be tested --- test/notification.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/test/notification.js b/test/notification.js index 4399128..6bc4190 100644 --- a/test/notification.js +++ b/test/notification.js @@ -9,20 +9,23 @@ describe("Notification", function() { }); describe("aps payload", function() { - describe("getAlertText", function() { - describe("plain alert string", function() { - it("gets the alert text", function() { - note.alert = "hello"; + describe("alert property", function() { - expect(note.getAlertText()).to.equal("hello"); + describe("getAlertText", function() { + describe("plain alert string", function() { + it("gets the alert text", function() { + note.alert = "hello"; + + expect(note.getAlertText()).to.equal("hello"); + }); }); - }); - describe("alert object", function() { - it("gets the alert text", function() { - note.alert = { "body": "hello" }; + describe("alert object", function() { + it("gets the alert text", function() { + note.alert = { "body": "hello" }; - expect(note.getAlertText()).to.equal("hello"); + expect(note.getAlertText()).to.equal("hello"); + }); }); }); });