Commit f186d176 authored by Mark Stenglein's avatar Mark Stenglein

move linting to mocha test

parent eb165cb6
#!/bin/bash
NPMBIN="$(npm bin)"
$NPMBIN/standard --verbose | $NPMBIN/snazzy
......@@ -3,21 +3,23 @@
"version": "0.1.0",
"description": "Web application to fetch classes over WebDAV",
"author": "Student Run Computing and Technology <srct@gmu.edu>",
"contributors": [{
"contributors": [
{
"name": "Mark Stenglein (ocelotsloth)",
"email": "mark@stengle.in"
}],
}
],
"scripts": {
"start": "node ./bin/www",
"lint": "standard --verbose | snazzy",
"precommit": "npm run lint"
"test": "mocha",
"precommit": "mocha"
},
"repository": {
"type": "git",
"url": "https://git.gmu.edu/srct/schedules"
"type": "git",
"url": "https://git.gmu.edu/srct/schedules"
},
"bugs": {
"url": "https://git.gmu.edu/srct/schedules/issues"
"url": "https://git.gmu.edu/srct/schedules/issues"
},
"dependencies": {
"app-module-path": "^2.1.0",
......@@ -39,7 +41,9 @@
"devDependencies": {
"chai": "^3.5.0",
"husky": "^0.11.9",
"lint-staged": "^3.2.1",
"mocha": "^3.0.2",
"mocha-standard": "^1.0.0",
"mockery": "^1.7.0",
"sinon": "^1.17.6",
"snazzy": "^5.0.0",
......@@ -53,5 +57,8 @@
"/dataScrapers/"
]
},
"lint-staged": {
"*.js": "snazzy"
},
"license": "MIT"
}
/* global it */
it('conforms to standard', require('mocha-standard'))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment