Commit a83c578c authored by Amit Davidi's avatar Amit Davidi

Fix broken android API test

parent 89620c49
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment