Comparing version 7.1.1 to 7.1.2
@@ -0,1 +1,12 @@ | ||
# 7.1.2 / 2020-04-26 | ||
## :nut_and_bolt: Other | ||
- [#4251](https://github.com/mochajs/mocha/issues/4251): Prevent karma-mocha from stalling ([**@juergba**](https://github.com/juergba)) | ||
- [#4222](https://github.com/mochajs/mocha/issues/4222): Update dependency mkdirp to v0.5.5 ([**@outsideris**](https://github.com/outsideris)) | ||
## :book: Documentation | ||
- [#4208](https://github.com/mochajs/mocha/issues/4208): Add Wallaby logo to site ([**@boneskull**](https://github.com/boneskull)) | ||
# 7.1.1 / 2020-03-18 | ||
@@ -2,0 +13,0 @@ |
@@ -226,27 +226,2 @@ 'use strict'; | ||
/** | ||
* Inspect the runnable void of private properties. | ||
* | ||
* @private | ||
* @return {string} | ||
*/ | ||
Runnable.prototype.inspect = function() { | ||
return JSON.stringify( | ||
this, | ||
function(key, val) { | ||
if (key[0] === '_') { | ||
return; | ||
} | ||
if (key === 'parent') { | ||
return '#<Suite>'; | ||
} | ||
if (key === 'ctx') { | ||
return '#<Context>'; | ||
} | ||
return val; | ||
}, | ||
2 | ||
); | ||
}; | ||
/** | ||
* Reset the timeout. | ||
@@ -253,0 +228,0 @@ * |
@@ -22,3 +22,2 @@ 'use strict'; | ||
var dQuote = utils.dQuote; | ||
var ngettext = utils.ngettext; | ||
var sQuote = utils.sQuote; | ||
@@ -139,3 +138,3 @@ var stackFilter = utils.stackTraceFilter(); | ||
this.on(constants.EVENT_TEST_END, function(test) { | ||
if (test.retriedTest() && test.parent) { | ||
if (test.type === 'test' && test.retriedTest() && test.parent) { | ||
var idx = | ||
@@ -276,8 +275,4 @@ test.parent.tests && test.parent.tests.indexOf(test.retriedTest()); | ||
if (leaks.length) { | ||
var format = ngettext( | ||
leaks.length, | ||
'global leak detected: %s', | ||
'global leaks detected: %s' | ||
); | ||
var error = new Error(util.format(format, leaks.map(sQuote).join(', '))); | ||
var msg = 'global leak(s) detected: %s'; | ||
var error = new Error(util.format(msg, leaks.map(sQuote).join(', '))); | ||
this.fail(test, error); | ||
@@ -284,0 +279,0 @@ } |
@@ -757,34 +757,2 @@ 'use strict'; | ||
/** | ||
* Provides simplistic message translation for dealing with plurality. | ||
* | ||
* @description | ||
* Use this to create messages which need to be singular or plural. | ||
* Some languages have several plural forms, so _complete_ message clauses | ||
* are preferable to generating the message on the fly. | ||
* | ||
* @private | ||
* @param {number} n - Non-negative integer | ||
* @param {string} msg1 - Message to be used in English for `n = 1` | ||
* @param {string} msg2 - Message to be used in English for `n = 0, 2, 3, ...` | ||
* @returns {string} message corresponding to value of `n` | ||
* @example | ||
* var sprintf = require('util').format; | ||
* var pkgs = ['one', 'two']; | ||
* var msg = sprintf( | ||
* ngettext( | ||
* pkgs.length, | ||
* 'cannot load package: %s', | ||
* 'cannot load packages: %s' | ||
* ), | ||
* pkgs.map(sQuote).join(', ') | ||
* ); | ||
* console.log(msg); // => cannot load packages: 'one', 'two' | ||
*/ | ||
exports.ngettext = function(n, msg1, msg2) { | ||
if (typeof n === 'number' && n >= 0) { | ||
return n === 1 ? msg1 : msg2; | ||
} | ||
}; | ||
/** | ||
* It's a noop. | ||
@@ -791,0 +759,0 @@ * @public |
{ | ||
"name": "mocha", | ||
"version": "7.1.1", | ||
"version": "7.1.2", | ||
"description": "simple, flexible, fun test framework", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">= 8.0.0" | ||
"node": ">= 8.10.0" | ||
}, | ||
@@ -60,3 +60,3 @@ "scripts": { | ||
"minimatch": "3.0.4", | ||
"mkdirp": "0.5.3", | ||
"mkdirp": "0.5.5", | ||
"ms": "2.1.1", | ||
@@ -63,0 +63,0 @@ "node-environment-flags": "1.0.6", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
902565
25205
+ Addedmkdirp@0.5.5(transitive)
- Removedmkdirp@0.5.3(transitive)
Updatedmkdirp@0.5.5