From a1d6a2ec9438c6f133f3a2812f773baea73d8743 Mon Sep 17 00:00:00 2001 From: Phap Date: Fri, 20 Sep 2019 18:59:01 -0400 Subject: [PATCH] move mocha call to package.json and update GruntFile --- Gruntfile.coffee | 8 +------- package.json | 1 + 2 files changed, 2 insertions(+), 7 deletions(-) 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"