Skip to content

Commit

Permalink
update lint command
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcwood committed Nov 18, 2020
1 parent b3a56df commit d04236a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"test": "jest --no-cache --coverage",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"eslint": "eslint index.js"
"lint": "eslint index.js test.js --fix"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint no-undef: 0 */
const fs = require('fs')
const { process } = require('./index')
const path = require('path')
Expand Down Expand Up @@ -105,7 +106,6 @@ test('user config - warning - could not be loaded', () => {
expect(consoleSpy).toHaveBeenLastCalledWith('WARNING - User Configuration could not be loaded, please check configuration is correct and report to the maintainers!')
})


// Errors
test('error - general failure of childProcess.spawnSync', () => {
jest.spyOn(childProcess, 'spawnSync').mockImplementation(() => { return { status: 1, signal: 'test', error: 'test' } })
Expand Down

0 comments on commit d04236a

Please sign in to comment.