Socket
Socket
Sign inDemoInstall

mocha-headless-chrome

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-headless-chrome - npm Package Compare versions

Comparing version 1.3.4 to 1.4.0

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc