Skip to content

Commit

Permalink
making tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophv committed Feb 21, 2017
1 parent 5c8c9ae commit 6c3305d
Show file tree
Hide file tree
Showing 6 changed files with 228 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"test": {
"plugins": [
["webpack-loaders", { "config": "webpack.config.test.js", "verbose": true }],
["webpack-loaders", { "config": "webpack.config.test.js", "verbose": false }],
"babel-plugin-rewire",
["transform-define", {
"__TEST__": "true"
Expand Down
2 changes: 1 addition & 1 deletion app/actions/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function doAppInit(opts, servicesToInit) {
const { api, carelink, device, localStore, log } = services;

dispatch(syncActions.initRequest());
dispatch(syncActions.hideUnavailableDevices(hostMap[os.platform()]));
dispatch(syncActions.hideUnavailableDevices(opts.os || hostMap[os.platform()]));

log('Initializing local store.');
localStore.init(localStore.getInitialState(), function(localStoreResult){
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build-docs": "./scripts/update-gh-pages.sh",
"serve-docs": "./node_modules/.bin/gitbook serve",
"test": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 mocha --retries 2 --compilers js:babel-register --recursive --require ./test/setup.js test/**/*.js",
"test-debug": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 mocha --retries 2 --compilers js:babel-register --recursive --require ./test/setup.js test/**/*.js --inspect --debug-brk",
"test-all": "npm run lint && npm run test && npm run build",
"test-watch": "npm test -- --watch",
"test-e2e": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 mocha --retries 2 --compilers js:babel-register --require ./test/setup.js ./test/e2e.js",
Expand Down
Loading

0 comments on commit 6c3305d

Please sign in to comment.