More aps properties will be tested

This commit is contained in:
Andrew Naylor 2015-04-13 08:22:45 +01:00
Родитель 9186f0550d
Коммит 5521254cde
1 изменённых файлов: 13 добавлений и 10 удалений

Просмотреть файл

@ -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");
});
});
});
});