diff --git a/.mocharc.js b/.mocharc.js new file mode 100644 index 0000000..c2200f1 --- /dev/null +++ b/.mocharc.js @@ -0,0 +1,6 @@ +module.exports = { + exit: true, + timeout: 60000, + checkLeaks: false, + require: ['coffee-script/register'], +}; diff --git a/Makefile b/Makefile index 8986510..47d4e5a 100644 --- a/Makefile +++ b/Makefile @@ -12,11 +12,11 @@ test-cov: rm -rf lib-js lib-js-cov coffee -c -o lib-js lib jscoverage lib-js lib-js-cov - NODE_ENV=test TEST_COV_SAML2=1 node_modules/mocha/bin/mocha -R html-cov --ignore-leaks --compilers coffee:coffee-script/register test/*.coffee | tee coverage.html + NODE_ENV=test TEST_COV_SAML2=1 node_modules/mocha/bin/mocha -R html-cov test/*.coffee | tee coverage.html open coverage.html test: build - NODE_ENV=test node_modules/mocha/bin/mocha --ignore-leaks --timeout 60000 -R spec --compilers coffee:coffee-script/register test/*.coffee + NODE_ENV=test node_modules/mocha/bin/mocha -R spec test/*.coffee clean: rm -rf lib-js lib-js-cov diff --git a/package.json b/package.json index 79a0a04..ac96bb7 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "Clever", "main": "index.js", "engines": { - "node": ">=0.10.x" + "node": ">=10.x" }, "scripts": { "test": "make -Br test", @@ -24,17 +24,17 @@ "url": "https://github.com/Clever/saml2/issues" }, "devDependencies": { - "mocha": "^3.5.0", + "mocha": "^8.2.0", "coffee-script": "^1.12.0" }, "dependencies": { - "async": "^2.5.0", - "debug": "^2.6.0", - "underscore": "^1.8.0", - "xml-crypto": "^0.10.0", + "async": "^3.2.0", + "debug": "^4.2.0", + "underscore": "^1.11.0", + "xml-crypto": "^2.0.0", "xml-encryption": "^1.2.1", - "xml2js": "^0.4.0", + "xml2js": "^0.4.23", "xmlbuilder": "~2.2.0", - "xmldom": "^0.1.0" + "xmldom": "^0.3.0" } }