New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@johanblumenberg/mocha

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@johanblumenberg/mocha - npm Package Compare versions

Comparing version 1.0.17 to 1.0.18

23

lib/runner.js

@@ -519,3 +519,3 @@ 'use strict';

function hookErr(_, errSuite, after) {
function hookErr(_, errSuite, after, fn) {
// before/after Each hook for errSuite failed:

@@ -534,3 +534,3 @@ var orig = self.suite;

if (err2) {
return hookErr(err2, errSuite2, true);
return hookErr(err2, errSuite2, true, fn);
}

@@ -553,3 +553,3 @@ // report error suite

if (err) {
return hookErr(err, errSuite, true);
return hookErr(err, errSuite, true, fn);
}

@@ -610,3 +610,6 @@

if (err) {
return hookErr(err, errSuite, false);
return hookErr(err, errSuite, false, function(errSuite) {
self.emit('test end', test);
fn(errSuite);
});
}

@@ -637,8 +640,10 @@ self.currentRunnable = self.test;

p.then(function() {
self.emit('test end', test);
if (err instanceof Pending) {
self.emit('test end', test);
next();
} else {
self.hookUp('afterEach', next);
self.hookUp('afterEach', function(err, errSuite) {
self.emit('test end', test);
next(err, errSuite);
});
}

@@ -665,3 +670,5 @@ });

this.next = next;
this.hookErr = hookErr;
this.hookErr = function(err, errSuite, after) {
hookErr(err, errSuite, after, fn);
};
next();

@@ -668,0 +675,0 @@ };

{
"name": "@johanblumenberg/mocha",
"version": "1.0.17",
"version": "1.0.18",
"description": "simple, flexible, fun test framework",

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

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

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