Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-notifications
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
冷佳娟
react-native-notifications
Commits
24eee3b5
Commit
24eee3b5
authored
Aug 01, 2017
by
Ryan Eberhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
1ece0281
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
test/index.ios.spec.js
test/index.ios.spec.js
+6
-2
No files found.
test/index.ios.spec.js
View file @
24eee3b5
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment