diff --git a/test/index.ios.spec.js b/test/index.ios.spec.js index beff611672b912069afcdc1fde0918419ff9610a..aa1f72009595ca49494f44990d4b36b1854f33a0 100644 --- a/test/index.ios.spec.js +++ b/test/index.ios.spec.js @@ -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;