diff --git a/test/index.android.spec.js b/test/index.android.spec.js index d471737551ae1f0a62622fe67b6ba782e097e5cc..a41255b81e52cd447febcebc2d71fa52647bdb60 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));