Commit 19a11de3 authored by Lidan Hifi's avatar Lidan Hifi

fix background remaining time test

parent 448cc12e
......@@ -203,9 +203,11 @@ describe("NotificationsIOS", () => {
describe("Get background remaining time", () => {
it("should call native background remaining time method", () => {
NotificationsIOS.backgroundTimeRemaining(time => { });
let someCallback = (time) => { };
expect(nativeBackgroundTimeRemaining).to.have.been.called;
NotificationsIOS.backgroundTimeRemaining(someCallback);
expect(nativeBackgroundTimeRemaining).to.have.been.calledWith(someCallback);
});
});
});
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