Merge pull request #78 from christroutner/unstable

fix(husky): Adding husky for pre-commit linting
This commit is contained in:
Chris Troutner
2020-07-30 08:09:41 -07:00
committed by GitHub
3 changed files with 667 additions and 166 deletions
+661 -165
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -62,6 +62,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-standard": "^4.0.0",
"husky": "^4.2.5",
"mocha": "^7.0.1",
"nyc": "^15.0.0",
"semantic-release": "^17.0.0",
@@ -74,5 +75,10 @@
"npmPublish": false
}
]
},
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
}
}
-1
View File
@@ -8,7 +8,6 @@ const assert = require('chai').assert
const LOCALHOST = `http://localhost:${config.port}`
describe('Contact', () => {
describe('POST /contact/email', () => {
it('should throw error if email property is not provided', async () => {
try {