mocha 9.1.0 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/hook.js +7 -1
- package/lib/suite.js +2 -2
- package/lib/test.js +1 -1
- package/mocha-es2018.js +12 -6
- package/mocha.js +399 -276
- package/mocha.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
package/lib/hook.js
CHANGED
|
@@ -62,7 +62,9 @@ Hook.prototype.error = function(err) {
|
|
|
62
62
|
*/
|
|
63
63
|
Hook.prototype.serialize = function serialize() {
|
|
64
64
|
return {
|
|
65
|
-
$$
|
|
65
|
+
$$currentRetry: this.currentRetry(),
|
|
66
|
+
$$fullTitle: this.fullTitle(),
|
|
67
|
+
$$isPending: Boolean(this.isPending()),
|
|
66
68
|
$$titlePath: this.titlePath(),
|
|
67
69
|
ctx:
|
|
68
70
|
this.ctx && this.ctx.currentTest
|
|
@@ -73,9 +75,13 @@ Hook.prototype.serialize = function serialize() {
|
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
: {},
|
|
78
|
+
duration: this.duration,
|
|
79
|
+
file: this.file,
|
|
76
80
|
parent: {
|
|
81
|
+
$$fullTitle: this.parent.fullTitle(),
|
|
77
82
|
[MOCHA_ID_PROP_NAME]: this.parent.id
|
|
78
83
|
},
|
|
84
|
+
state: this.state,
|
|
79
85
|
title: this.title,
|
|
80
86
|
type: this.type,
|
|
81
87
|
[MOCHA_ID_PROP_NAME]: this.id
|
package/lib/suite.js
CHANGED
|
@@ -594,10 +594,10 @@ Suite.prototype.serialize = function serialize() {
|
|
|
594
594
|
return {
|
|
595
595
|
_bail: this._bail,
|
|
596
596
|
$$fullTitle: this.fullTitle(),
|
|
597
|
-
$$isPending: this.isPending(),
|
|
597
|
+
$$isPending: Boolean(this.isPending()),
|
|
598
598
|
root: this.root,
|
|
599
599
|
title: this.title,
|
|
600
|
-
|
|
600
|
+
[MOCHA_ID_PROP_NAME]: this.id,
|
|
601
601
|
parent: this.parent ? {[MOCHA_ID_PROP_NAME]: this.parent.id} : null
|
|
602
602
|
};
|
|
603
603
|
};
|
package/lib/test.js
CHANGED
|
@@ -92,7 +92,7 @@ Test.prototype.serialize = function serialize() {
|
|
|
92
92
|
return {
|
|
93
93
|
$$currentRetry: this._currentRetry,
|
|
94
94
|
$$fullTitle: this.fullTitle(),
|
|
95
|
-
$$isPending: this.pending,
|
|
95
|
+
$$isPending: Boolean(this.pending),
|
|
96
96
|
$$retriedTest: this._retriedTest || null,
|
|
97
97
|
$$slow: this._slow,
|
|
98
98
|
$$titlePath: this.titlePath(),
|
package/mocha-es2018.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// mocha@9.1.
|
|
1
|
+
// mocha@9.1.1 in javascript ES2018
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -12282,7 +12282,9 @@
|
|
|
12282
12282
|
*/
|
|
12283
12283
|
Hook.prototype.serialize = function serialize() {
|
|
12284
12284
|
return {
|
|
12285
|
-
$$
|
|
12285
|
+
$$currentRetry: this.currentRetry(),
|
|
12286
|
+
$$fullTitle: this.fullTitle(),
|
|
12287
|
+
$$isPending: Boolean(this.isPending()),
|
|
12286
12288
|
$$titlePath: this.titlePath(),
|
|
12287
12289
|
ctx:
|
|
12288
12290
|
this.ctx && this.ctx.currentTest
|
|
@@ -12293,9 +12295,13 @@
|
|
|
12293
12295
|
}
|
|
12294
12296
|
}
|
|
12295
12297
|
: {},
|
|
12298
|
+
duration: this.duration,
|
|
12299
|
+
file: this.file,
|
|
12296
12300
|
parent: {
|
|
12301
|
+
$$fullTitle: this.parent.fullTitle(),
|
|
12297
12302
|
[MOCHA_ID_PROP_NAME$1]: this.parent.id
|
|
12298
12303
|
},
|
|
12304
|
+
state: this.state,
|
|
12299
12305
|
title: this.title,
|
|
12300
12306
|
type: this.type,
|
|
12301
12307
|
[MOCHA_ID_PROP_NAME$1]: this.id
|
|
@@ -12898,10 +12904,10 @@
|
|
|
12898
12904
|
return {
|
|
12899
12905
|
_bail: this._bail,
|
|
12900
12906
|
$$fullTitle: this.fullTitle(),
|
|
12901
|
-
$$isPending: this.isPending(),
|
|
12907
|
+
$$isPending: Boolean(this.isPending()),
|
|
12902
12908
|
root: this.root,
|
|
12903
12909
|
title: this.title,
|
|
12904
|
-
|
|
12910
|
+
[MOCHA_ID_PROP_NAME]: this.id,
|
|
12905
12911
|
parent: this.parent ? {[MOCHA_ID_PROP_NAME]: this.parent.id} : null
|
|
12906
12912
|
};
|
|
12907
12913
|
};
|
|
@@ -17144,7 +17150,7 @@
|
|
|
17144
17150
|
});
|
|
17145
17151
|
|
|
17146
17152
|
var name = "mocha";
|
|
17147
|
-
var version = "9.1.
|
|
17153
|
+
var version = "9.1.1";
|
|
17148
17154
|
var homepage = "https://mochajs.org/";
|
|
17149
17155
|
var notifyLogo = "https://ibin.co/4QuRuGjXvl36.png";
|
|
17150
17156
|
var _package = {
|
|
@@ -17545,7 +17551,7 @@
|
|
|
17545
17551
|
return {
|
|
17546
17552
|
$$currentRetry: this._currentRetry,
|
|
17547
17553
|
$$fullTitle: this.fullTitle(),
|
|
17548
|
-
$$isPending: this.pending,
|
|
17554
|
+
$$isPending: Boolean(this.pending),
|
|
17549
17555
|
$$retriedTest: this._retriedTest || null,
|
|
17550
17556
|
$$slow: this._slow,
|
|
17551
17557
|
$$titlePath: this.titlePath(),
|