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.5.1 to 1.5.2

2

cli.js

@@ -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 @@ };

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