diff --git a/package.json b/package.json index 98c2aa8d..0231570b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "main": "index.js", "scripts": { - "test": "./support/nodeunit/bin/nodeunit test/*_test.js" + "test": "ONLY=memory ./support/nodeunit/bin/nodeunit test/*_test.*" }, "engines": [ "node >= 0.4.0" diff --git a/test/spec_helper.js b/test/spec_helper.js index b5ca20c1..e103306c 100644 --- a/test/spec_helper.js +++ b/test/spec_helper.js @@ -48,7 +48,7 @@ function check_external_exports() { // add assertions -var assert = require(require('module')._resolveFilename('nodeunit')[0].replace(/index\.js$/, 'lib/assert')); +var assert = require(require('module')._resolveFilename('../support/nodeunit')[0].replace(/index\.js$/, 'lib/assert')); // Check response status code 200 OK assert.status200 = function (response, message) {