Skip to content

Commit

Permalink
updated npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Krisztian Nagy authored and Krisztian Nagy committed Jul 1, 2016
1 parent 316fd17 commit 51791c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
"main": "index.js",
"scripts": {
"local": "npm -g install .",
"pretest": "eslint bin lib spec",
"lint": "eslint bin lib spec",
"pretest": "npm run lint",
"test": "jasmine",
"coverage": "istanbul cover --include-all-sources -x **/spec/** -x **/bin/** node_modules/jasmine/bin/jasmine.js",
"precoverage": "npm run lint",
"prelocal": "npm run coverage",
"precoveralls": "npm run coverage",
"coveralls": "cat ./coverage/lcov.info | node_modules/coveralls/bin/coveralls.js"
Expand Down
2 changes: 2 additions & 0 deletions spec/configurator-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ describe('Configurator', function () {
expect(g.log).toHaveBeenCalledWith('Define "dir" parameter in the configuration if you want to use a different folder');
expect(fs.mkdirSync).toHaveBeenCalledWith(path.join(g.cwd, g.config.dir, g.runDateTime));
expect(g.log).toHaveBeenCalledWith('Data will be saved to:', path.join(g.cwd, g.config.dir, g.runDateTime));

// TODO: RUNNER SHOULD BE TESTED SOMEHOW
});
});
});

0 comments on commit 51791c2

Please sign in to comment.