diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 9d072fc9..ca1f48ac 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -57,13 +57,7 @@ module.exports = (grunt) -> tasks: ['jsonlint:packagejson'] exec: mocha: - options: [ - '--compilers coffee:coffee-script/register' - '--reporter spec' - '--colors' - '--recursive' - ], - cmd: './node_modules/.bin/mocha <%= exec.mocha.options.join(" ") %>' + cmd: 'npm run mocha' keycode: generate: dest: 'src/adb/keycode.coffee' diff --git a/package.json b/package.json index 08c0e2e7..356ee636 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "url": "https://github.com/openstf/adbkit.git" }, "scripts": { + "mocha": "mocha --compilers coffee:coffee-script/register --reporter spec --colors --recursive", "postpublish": "grunt clean", "prepublish": "grunt test coffee", "test": "grunt test"