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
7be80215
Commit
7be80215
authored
Sep 14, 2019
by
yogevbd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix js tests
parent
2b912437
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
lib/src/commands/Commands.test.ts
lib/src/commands/Commands.test.ts
+7
-0
package.json
package.json
+5
-2
scripts/test-js.js
scripts/test-js.js
+1
-3
scripts/test.js
scripts/test.js
+1
-1
No files found.
lib/src/commands/Commands.test.ts
View file @
7be80215
...
...
@@ -185,4 +185,11 @@ describe('Commands', () => {
verify
(
mockedNativeCommandsSender
.
getDeliveredNotifications
()).
called
();
});
});
describe
(
'
refreshToken
'
,
()
=>
{
it
(
'
sends to native
'
,
()
=>
{
uut
.
refreshToken
();
verify
(
mockedNativeCommandsSender
.
refreshToken
()).
called
();
});
});
});
package.json
View file @
7be80215
...
...
@@ -24,7 +24,7 @@
"scripts"
:
{
"build"
:
"rm -rf ./lib/dist && tsc"
,
"prestart"
:
"npm run build"
,
"pretest
"
:
"./node_modules/.bin/eslint *.js test
"
,
"pretest
-js"
:
"npm run build
"
,
"test"
:
"node scripts/test"
,
"start"
:
"node ./scripts/start"
,
"pretest-e2e-ios-release"
:
"npm run build"
,
...
...
@@ -108,13 +108,16 @@
},
"roots"
:
[
"<rootDir>/node_modules/"
,
"<rootDir>/
te
st/"
"<rootDir>/
lib/di
st/"
],
"collectCoverageFrom"
:
[
"lib/dist/**/*.js"
,
"lib/src/**/*.js"
,
"integration/**/*.js"
,
"!lib/dist/index.js"
,
"!lib/dist/Notifications.js"
,
"!lib/dist/NotificationsIOS.js"
,
"!lib/dist/NotificationsAndroid.js"
,
"!lib/dist/adapters/**/*"
,
"!lib/dist/interfaces/**/*"
,
"!lib/dist/**/*.test.*"
,
...
...
scripts/test-js.js
View file @
7be80215
...
...
@@ -5,10 +5,8 @@ const fix = _.includes(process.argv, '--fix') ? '--fix' : '';
const
dirs
=
[
'
lib
'
,
'
integration
'
,
'
e2e
'
,
'
scripts
'
,
'
playground
/src
'
'
example
/src
'
];
run
();
...
...
scripts/test.js
View file @
7be80215
...
...
@@ -3,7 +3,7 @@ const exec = require('shell-utils').exec;
run
();
function
run
()
{
exec
.
execSync
(
`
jest
`
);
exec
.
execSync
(
`
npm run test-js
`
);
exec
.
execSync
(
`npm run test-unit-ios`
);
exec
.
execSync
(
`npm run test-unit-android`
);
}
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