Skip to content

Commit

Permalink
added linting npm test
Browse files Browse the repository at this point in the history
  • Loading branch information
CiccioTecchio committed Nov 24, 2018
1 parent 0652560 commit 963bb4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/package.json
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"start": "node ./bin/www",
"test": "nyc mocha --exit",
"test": "nyc mocha --exit && ./node_modules/.bin/eslint --fix app.js routes/** test/**.js",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions server/test/index.test.js
Expand Up @@ -5,6 +5,7 @@ let chaiHttp = require('chai-http');
let server = require('../app');
chai.use(require('chai-match'));
chai.use(chaiHttp);
// eslint-disable-next-line no-unused-vars
let should = chai.should();
it('GET: it should render the home page', function(done){
chai.request(server)
Expand Down
1 change: 1 addition & 0 deletions server/test/userCNT.test.js
Expand Up @@ -5,6 +5,7 @@ let chai = require('chai');
let chaiHttp = require('chai-http');
let randomstring = require("randomstring");
let server = require('../app');
// eslint-disable-next-line no-unused-vars
let should = chai.should();
chai.use(require('chai-match'));
chai.use(chaiHttp);
Expand Down

0 comments on commit 963bb4f

Please sign in to comment.