From a83c578c9856d791cc70083161862b276a43c432 Mon Sep 17 00:00:00 2001 From: Amit Davidi Date: Wed, 15 Feb 2017 16:56:31 +0200 Subject: [PATCH] Fix broken android API test --- test/index.android.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.android.spec.js b/test/index.android.spec.js index d471737..a41255b 100644 --- a/test/index.android.spec.js +++ b/test/index.android.spec.js @@ -181,13 +181,13 @@ describe("Notifications-Android > ", () => { .catch((err) => done(err)); }); - it("should return empty notification data if not available", (done) => { + it("should return empty notification if not available", (done) => { expect(getInitialNotificationStub).to.not.have.been.called; getInitialNotificationStub.returns(Promise.resolve(null)); libUnderTest.PendingNotifications.getInitialNotification() .then((notification) => { - expect(notification.getData()).to.equal(null); + expect(notification).to.be.undefined; done(); }) .catch((err) => done(err)); -- 2.26.2