🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

mocha

Package Overview
Dependencies
Maintainers
1
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha - npm Package Compare versions

Comparing version

to
5.0.1

12

lib/runnable.js

@@ -56,3 +56,2 @@ 'use strict';

this.timedOut = false;
this._trace = new Error('done() called multiple times');
this._retries = -1;

@@ -282,3 +281,9 @@ this._currentRetry = 0;

emitted = true;
self.emit('error', err || new Error('done() called multiple times; stacktrace may be inaccurate'));
var msg = 'done() called multiple times';
if (err && err.message) {
err.message += " (and Mocha's " + msg + ')';
self.emit('error', err);
} else {
self.emit('error', new Error(msg));
}
}

@@ -292,4 +297,5 @@

}
if (finished) {
return multiple(err || self._trace);
return multiple(err);
}

@@ -296,0 +302,0 @@

@@ -813,7 +813,2 @@ 'use strict';

// If there is an `only` filter
if (hasOnly(rootSuite)) {
filterOnly(rootSuite);
}
fn = fn || function () {};

@@ -826,2 +821,6 @@

function start () {
// If there is an `only` filter
if (hasOnly(rootSuite)) {
filterOnly(rootSuite);
}
self.started = true;

@@ -828,0 +827,0 @@ self.emit('start');

{
"name": "mocha",
"version": "5.0.0",
"version": "5.0.1",
"description": "simple, flexible, fun test framework",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display