diff --git a/.gitignore b/.gitignore index 9d43537..e9fa07a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ .idea *.DS_Store -/node_modules -/coverage +node_modules diff --git a/.jshintignore b/.jshintignore index af9a97d..3c3629e 100644 --- a/.jshintignore +++ b/.jshintignore @@ -1,3 +1 @@ node_modules -patches/*/node_modules -coverage diff --git a/.npmignore b/.npmignore index 1df712f..9daeafb 100644 --- a/.npmignore +++ b/.npmignore @@ -1,2 +1 @@ -test/ -test.js +test diff --git a/package.json b/package.json index f111bd0..af1e59f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "Express middleware for performing internal batch requests", "main": "source/index.js", "scripts": { - "test": "node ./test.js" + "test": "mocha" }, "dependencies": { "pump": "~1.0.0", diff --git a/test.js b/test.js deleted file mode 100644 index 9f0c88e..0000000 --- a/test.js +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env node -var exit = process.exit; - -process.exit = function (code) { - setTimeout(exit.bind(process, code), 2000); -}; - -require('./node_modules/mocha/bin/_mocha');