Commit 7be80215 authored by yogevbd's avatar yogevbd

Fix js tests

parent 2b912437
......@@ -185,4 +185,11 @@ describe('Commands', () => {
verify(mockedNativeCommandsSender.getDeliveredNotifications()).called();
});
});
describe('refreshToken', () => {
it('sends to native', () => {
uut.refreshToken();
verify(mockedNativeCommandsSender.refreshToken()).called();
});
});
});
......@@ -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>/test/"
"<rootDir>/lib/dist/"
],
"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.*",
......
......@@ -5,10 +5,8 @@ const fix = _.includes(process.argv, '--fix') ? '--fix' : '';
const dirs = [
'lib',
'integration',
'e2e',
'scripts',
'playground/src'
'example/src'
];
run();
......
......@@ -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`);
}
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