mocha-headless-chrome
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -34,3 +34,3 @@ 'use strict'; | ||
if (obj.result.stats.failures) { | ||
throw Error('Tests fails'); | ||
throw 'Tests fails'; | ||
} | ||
@@ -37,0 +37,0 @@ }) |
{ | ||
"name": "mocha-headless-chrome", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Run client-side mocha tests in the command line through headless Chrome", | ||
@@ -30,9 +30,9 @@ "main": "runner.js", | ||
"dependencies": { | ||
"args": "^3.0.4", | ||
"args": "^3.0.7", | ||
"puppeteer": "^0.11.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.1.1", | ||
"mocha": "^3.5.0" | ||
"chai": "^4.1.2", | ||
"mocha": "^4.0.1" | ||
} | ||
} |
@@ -39,3 +39,3 @@ 'use strict'; | ||
} | ||
function result(stats) { | ||
@@ -66,12 +66,7 @@ return { | ||
const runner = run() | ||
const runner = run(() => setTimeout(() => setResult.call(runner), 0)) | ||
.on('pass', test => { passes.push(test); all.push(test); }) | ||
.on('fail', test => { failures.push(test); all.push(test); }) | ||
.on('pending', test => { pending.push(test); all.push(test); }) | ||
.on('end', setResult); | ||
.on('pending', test => { pending.push(test); all.push(test); }); | ||
if (!m.suite.total()) { | ||
setResult.call(runner); | ||
} | ||
return runner; | ||
@@ -78,0 +73,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
12624
175
Updatedargs@^3.0.7