From e893a3ace78be67f90c470ba088c58e8b882cdc8 Mon Sep 17 00:00:00 2001 From: Andrew Naylor Date: Thu, 2 Apr 2015 00:31:40 +0100 Subject: [PATCH] url args presence --- test/notification.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/notification.js b/test/notification.js index 481fbab..fe9123a 100644 --- a/test/notification.js +++ b/test/notification.js @@ -347,6 +347,12 @@ describe("Notification", function() { expect(note.toJSON().aps["content-available"]).to.eql(1); }); }); + + it("includes the urlArgs property", function() { + note.urlArgs = ["arguments", "for", "url"]; + + expect(note.toJSON().aps["url-args"]).to.eql(["arguments", "for", "url"]); + }); }); }); });