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

Fix tests

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