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.2 to 1.3.3

4

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

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