summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Loach <robloach@gmail.com>2016-05-23 22:48:12 -0400
committerRob Loach <robloach@gmail.com>2016-05-23 22:48:12 -0400
commit864b0825348dc18f9055d80b910a7cacd2d053d8 (patch)
treeac4276c6cceafd4358dfe255aa9abec2d857166e
parenta1da2a98c25b4819af972de219684a20fb4e42fb (diff)
downloadjquery-once-864b0825348dc18f9055d80b910a7cacd2d053d8.zip
jquery-once-864b0825348dc18f9055d80b910a7cacd2d053d8.tar.gz
jquery-once-864b0825348dc18f9055d80b910a7cacd2d053d8.tar.bz2
Update development dependencies
-rw-r--r--package.json6
-rw-r--r--test/index.js4
-rw-r--r--test/test.js2
3 files changed, 6 insertions, 6 deletions
diff --git a/package.json b/package.json
index 2829d02..87d872d 100644
--- a/package.json
+++ b/package.json
@@ -34,11 +34,11 @@
},
"devDependencies": {
"jsdoc-to-markdown": "^1.2.0",
- "jsdom": "~8.1.0",
- "mocha": "~2.4.5",
+ "jsdom": "~9.1.0",
+ "mocha": "~2.5.1",
"mocha-jsdom": "~1.1.0",
"uglify-js": "~2.6.1",
- "xo": "^0.13.0"
+ "xo": "^0.15.1"
},
"scripts": {
"test": "mocha test/test.js",
diff --git a/test/index.js b/test/index.js
index 4ebe02c..2dd46b1 100644
--- a/test/index.js
+++ b/test/index.js
@@ -1,8 +1,8 @@
/**
* Mocha test runner.
*/
-var Mocha = require('mocha');
var path = require('path');
+var Mocha = require('mocha');
// Create our mocha instance.
var mocha = new Mocha();
@@ -13,6 +13,6 @@ mocha.addFile(path.join(__dirname, 'test.js'));
// Run the tests.
mocha.run(function (failures) {
process.on('exit', function () {
- process.exit(failures);
+ throw new Error(failures);
});
});
diff --git a/test/test.js b/test/test.js
index 82bc290..c1f3a24 100644
--- a/test/test.js
+++ b/test/test.js
@@ -1,5 +1,5 @@
-var jsdom = require('mocha-jsdom');
var assert = require('assert');
+var jsdom = require('mocha-jsdom');
/**
* Automated tests for jQuery Once.