mocha-headless-chrome
Advanced tools
Comparing version 1.3.2 to 1.3.3
{ | ||
"name": "mocha-headless-chrome", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Run client-side mocha tests in the command line through headless Chrome", | ||
@@ -11,3 +11,3 @@ "main": "runner.js", | ||
"scripts": { | ||
"start": "node cli -f example-page.html" | ||
"start": "node cli -f example-page.html -o result.json" | ||
}, | ||
@@ -14,0 +14,0 @@ "repository": { |
@@ -40,3 +40,3 @@ 'use strict'; | ||
function result() { | ||
function result(stats) { | ||
return { | ||
@@ -48,3 +48,6 @@ result: { | ||
pending: pending.length, | ||
failures: failures.length | ||
failures: failures.length, | ||
start: stats.start.toISOString(), | ||
end: stats.end.toISOString(), | ||
duration: stats.duration | ||
}, | ||
@@ -64,3 +67,3 @@ tests: all.map(clean), | ||
.on('pending', test => { pending.push(test); all.push(test); }) | ||
.on('end', () => { window.__mochaResult__ = result(); }); | ||
.on('end', function() { window.__mochaResult__ = result(this.stats); }); | ||
}; | ||
@@ -67,0 +70,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
33728
795