mocha-headless-chrome
Advanced tools
Comparing version 1.3.4 to 1.4.0
{ | ||
"name": "mocha-headless-chrome", | ||
"version": "1.3.4", | ||
"version": "1.4.0", | ||
"description": "Run client-side mocha tests in the command line through headless Chrome", | ||
@@ -5,0 +5,0 @@ "main": "runner.js", |
@@ -61,7 +61,17 @@ 'use strict'; | ||
return run() | ||
function setResult() { | ||
window.__mochaResult__ = result(this.stats); | ||
} | ||
const runner = run() | ||
.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', function() { window.__mochaResult__ = result(this.stats); }); | ||
.on('end', setResult); | ||
if (!m.suite.total()) { | ||
setResult.call(runner); | ||
} | ||
return runner; | ||
}; | ||
@@ -68,0 +78,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
33914
802