Commit 24eee3b5 authored by Ryan Eberhardt's avatar Ryan Eberhardt

Fix tests

parent 1ece0281
......@@ -29,7 +29,8 @@ describe("NotificationsIOS", () => {
nativeCancelLocalNotification,
nativeCancelAllLocalNotifications,
nativeSetBadgesCount,
nativeIsRegisteredForRemoteNotifications;
nativeIsRegisteredForRemoteNotifications,
nativeCheckPermissions;
let NotificationsIOS, NotificationAction, NotificationCategory;
let someHandler = () => {};
......@@ -51,6 +52,7 @@ describe("NotificationsIOS", () => {
nativeCancelAllLocalNotifications = sinon.spy();
nativeSetBadgesCount = sinon.spy();
nativeIsRegisteredForRemoteNotifications = sinon.spy();
nativeCheckPermissions = sinon.spy();
let libUnderTest = proxyquire("../index.ios", {
"uuid": {
......@@ -69,7 +71,7 @@ describe("NotificationsIOS", () => {
cancelAllLocalNotifications: nativeCancelAllLocalNotifications,
setBadgesCount: nativeSetBadgesCount,
isRegisteredForRemoteNotifications: nativeIsRegisteredForRemoteNotifications,
checkPermissions: nativeCheckPermissions,
checkPermissions: nativeCheckPermissions
}
},
NativeAppEventEmitter: {
......@@ -109,6 +111,7 @@ describe("NotificationsIOS", () => {
nativeCancelLocalNotification.reset();
nativeCancelAllLocalNotifications.reset();
nativeIsRegisteredForRemoteNotifications.reset();
nativeCheckPermissions.reset();
});
after(() => {
......@@ -125,6 +128,7 @@ describe("NotificationsIOS", () => {
nativeCancelLocalNotification = null;
nativeCancelAllLocalNotifications = null;
nativeIsRegisteredForRemoteNotifications = null;
nativeCheckPermissions = null;
NotificationsIOS = null;
NotificationAction = null;
......
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