mocha 9.2.1 → 9.2.2
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/lib/cli/run-helpers.js +10 -10
- package/lib/mocha.js +12 -22
- package/lib/runner.js +1 -1
- package/mocha-es2018.js +23 -28
- package/mocha.js +88 -74
- package/mocha.js.map +1 -1
- package/package.json +9 -8
package/mocha.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// mocha@9.2.
|
|
1
|
+
// mocha@9.2.2 transpiled to javascript ES5
|
|
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) :
|
|
@@ -127,12 +127,12 @@
|
|
|
127
127
|
return classofRaw(it) == 'String' ? split(it, '') : Object$5(it);
|
|
128
128
|
} : Object$5;
|
|
129
129
|
|
|
130
|
-
var TypeError$
|
|
130
|
+
var TypeError$m = global_1.TypeError;
|
|
131
131
|
|
|
132
132
|
// `RequireObjectCoercible` abstract operation
|
|
133
133
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
134
134
|
var requireObjectCoercible = function (it) {
|
|
135
|
-
if (it == undefined) throw TypeError$
|
|
135
|
+
if (it == undefined) throw TypeError$m("Can't call method on " + it);
|
|
136
136
|
return it;
|
|
137
137
|
};
|
|
138
138
|
|
|
@@ -231,12 +231,12 @@
|
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
|
|
234
|
-
var TypeError$
|
|
234
|
+
var TypeError$l = global_1.TypeError;
|
|
235
235
|
|
|
236
236
|
// `Assert: IsCallable(argument) is true`
|
|
237
237
|
var aCallable = function (argument) {
|
|
238
238
|
if (isCallable(argument)) return argument;
|
|
239
|
-
throw TypeError$
|
|
239
|
+
throw TypeError$l(tryToString(argument) + ' is not a function');
|
|
240
240
|
};
|
|
241
241
|
|
|
242
242
|
// `GetMethod` abstract operation
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
return func == null ? undefined : aCallable(func);
|
|
247
247
|
};
|
|
248
248
|
|
|
249
|
-
var TypeError$
|
|
249
|
+
var TypeError$k = global_1.TypeError;
|
|
250
250
|
|
|
251
251
|
// `OrdinaryToPrimitive` abstract operation
|
|
252
252
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject$1(val = functionCall(fn, input))) return val;
|
|
256
256
|
if (isCallable(fn = input.valueOf) && !isObject$1(val = functionCall(fn, input))) return val;
|
|
257
257
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject$1(val = functionCall(fn, input))) return val;
|
|
258
|
-
throw TypeError$
|
|
258
|
+
throw TypeError$k("Can't convert object to primitive value");
|
|
259
259
|
};
|
|
260
260
|
|
|
261
261
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
@@ -278,10 +278,10 @@
|
|
|
278
278
|
(module.exports = function (key, value) {
|
|
279
279
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
280
280
|
})('versions', []).push({
|
|
281
|
-
version: '3.
|
|
281
|
+
version: '3.21.1',
|
|
282
282
|
mode: 'global',
|
|
283
283
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
284
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
284
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
|
|
285
285
|
source: 'https://github.com/zloirock/core-js'
|
|
286
286
|
});
|
|
287
287
|
});
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
} return WellKnownSymbolsStore$1[name];
|
|
329
329
|
};
|
|
330
330
|
|
|
331
|
-
var TypeError$
|
|
331
|
+
var TypeError$j = global_1.TypeError;
|
|
332
332
|
var TO_PRIMITIVE$1 = wellKnownSymbol('toPrimitive');
|
|
333
333
|
|
|
334
334
|
// `ToPrimitive` abstract operation
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
if (pref === undefined) pref = 'default';
|
|
342
342
|
result = functionCall(exoticToPrim, input, pref);
|
|
343
343
|
if (!isObject$1(result) || isSymbol$1(result)) return result;
|
|
344
|
-
throw TypeError$
|
|
344
|
+
throw TypeError$j("Can't convert object to primitive value");
|
|
345
345
|
}
|
|
346
346
|
if (pref === undefined) pref = 'number';
|
|
347
347
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -399,15 +399,15 @@
|
|
|
399
399
|
});
|
|
400
400
|
|
|
401
401
|
var String$5 = global_1.String;
|
|
402
|
-
var TypeError$
|
|
402
|
+
var TypeError$i = global_1.TypeError;
|
|
403
403
|
|
|
404
404
|
// `Assert: Type(argument) is Object`
|
|
405
405
|
var anObject = function (argument) {
|
|
406
406
|
if (isObject$1(argument)) return argument;
|
|
407
|
-
throw TypeError$
|
|
407
|
+
throw TypeError$i(String$5(argument) + ' is not an object');
|
|
408
408
|
};
|
|
409
409
|
|
|
410
|
-
var TypeError$
|
|
410
|
+
var TypeError$h = global_1.TypeError;
|
|
411
411
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
412
412
|
var $defineProperty$1 = Object.defineProperty;
|
|
413
413
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -440,7 +440,7 @@
|
|
|
440
440
|
if (ie8DomDefine) try {
|
|
441
441
|
return $defineProperty$1(O, P, Attributes);
|
|
442
442
|
} catch (error) { /* empty */ }
|
|
443
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
443
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$h('Accessors not supported');
|
|
444
444
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
445
445
|
return O;
|
|
446
446
|
};
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
var hiddenKeys$1 = {};
|
|
481
481
|
|
|
482
482
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
483
|
-
var TypeError$
|
|
483
|
+
var TypeError$g = global_1.TypeError;
|
|
484
484
|
var WeakMap = global_1.WeakMap;
|
|
485
485
|
var set$2, get$1, has;
|
|
486
486
|
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
return function (it) {
|
|
493
493
|
var state;
|
|
494
494
|
if (!isObject$1(it) || (state = get$1(it)).type !== TYPE) {
|
|
495
|
-
throw TypeError$
|
|
495
|
+
throw TypeError$g('Incompatible receiver, ' + TYPE + ' required');
|
|
496
496
|
} return state;
|
|
497
497
|
};
|
|
498
498
|
};
|
|
@@ -503,7 +503,7 @@
|
|
|
503
503
|
var wmhas = functionUncurryThis(store.has);
|
|
504
504
|
var wmset = functionUncurryThis(store.set);
|
|
505
505
|
set$2 = function (it, metadata) {
|
|
506
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
506
|
+
if (wmhas(store, it)) throw new TypeError$g(OBJECT_ALREADY_INITIALIZED);
|
|
507
507
|
metadata.facade = it;
|
|
508
508
|
wmset(store, it, metadata);
|
|
509
509
|
return metadata;
|
|
@@ -518,7 +518,7 @@
|
|
|
518
518
|
var STATE = sharedKey('state');
|
|
519
519
|
hiddenKeys$1[STATE] = true;
|
|
520
520
|
set$2 = function (it, metadata) {
|
|
521
|
-
if (hasOwnProperty_1(it, STATE)) throw new TypeError$
|
|
521
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$g(OBJECT_ALREADY_INITIALIZED);
|
|
522
522
|
metadata.facade = it;
|
|
523
523
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
524
524
|
return metadata;
|
|
@@ -939,7 +939,7 @@
|
|
|
939
939
|
|
|
940
940
|
var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport('splice');
|
|
941
941
|
|
|
942
|
-
var TypeError$
|
|
942
|
+
var TypeError$f = global_1.TypeError;
|
|
943
943
|
var max$3 = Math.max;
|
|
944
944
|
var min$5 = Math.min;
|
|
945
945
|
var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF;
|
|
@@ -965,7 +965,7 @@
|
|
|
965
965
|
actualDeleteCount = min$5(max$3(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
|
|
966
966
|
}
|
|
967
967
|
if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER$1) {
|
|
968
|
-
throw TypeError$
|
|
968
|
+
throw TypeError$f(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
|
|
969
969
|
}
|
|
970
970
|
A = arraySpeciesCreate(O, actualDeleteCount);
|
|
971
971
|
for (k = 0; k < actualDeleteCount; k++) {
|
|
@@ -1133,8 +1133,8 @@
|
|
|
1133
1133
|
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
|
1134
1134
|
var method = [][METHOD_NAME];
|
|
1135
1135
|
return !!method && fails(function () {
|
|
1136
|
-
// eslint-disable-next-line no-useless-call
|
|
1137
|
-
method.call(null, argument || function () {
|
|
1136
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1137
|
+
method.call(null, argument || function () { return 1; }, 1);
|
|
1138
1138
|
});
|
|
1139
1139
|
};
|
|
1140
1140
|
|
|
@@ -1572,7 +1572,7 @@
|
|
|
1572
1572
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
|
1573
1573
|
};
|
|
1574
1574
|
|
|
1575
|
-
var TypeError$
|
|
1575
|
+
var TypeError$e = global_1.TypeError;
|
|
1576
1576
|
|
|
1577
1577
|
// `RegExpExec` abstract operation
|
|
1578
1578
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
@@ -1584,7 +1584,7 @@
|
|
|
1584
1584
|
return result;
|
|
1585
1585
|
}
|
|
1586
1586
|
if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
|
|
1587
|
-
throw TypeError$
|
|
1587
|
+
throw TypeError$e('RegExp#exec called on incompatible receiver');
|
|
1588
1588
|
};
|
|
1589
1589
|
|
|
1590
1590
|
// @@search logic
|
|
@@ -1618,7 +1618,7 @@
|
|
|
1618
1618
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
|
1619
1619
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
1620
1620
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
1621
|
-
var TypeError$
|
|
1621
|
+
var TypeError$d = global_1.TypeError;
|
|
1622
1622
|
|
|
1623
1623
|
// We can't use this feature detection in V8 since it causes
|
|
1624
1624
|
// deoptimization and serious performance degradation
|
|
@@ -1653,10 +1653,10 @@
|
|
|
1653
1653
|
E = i === -1 ? O : arguments[i];
|
|
1654
1654
|
if (isConcatSpreadable(E)) {
|
|
1655
1655
|
len = lengthOfArrayLike(E);
|
|
1656
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError$
|
|
1656
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$d(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
1657
1657
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
|
1658
1658
|
} else {
|
|
1659
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError$
|
|
1659
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$d(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
1660
1660
|
createProperty(A, n++, E);
|
|
1661
1661
|
}
|
|
1662
1662
|
}
|
|
@@ -2945,11 +2945,11 @@
|
|
|
2945
2945
|
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
2946
2946
|
|
|
2947
2947
|
var String$3 = global_1.String;
|
|
2948
|
-
var TypeError$
|
|
2948
|
+
var TypeError$c = global_1.TypeError;
|
|
2949
2949
|
|
|
2950
2950
|
var aPossiblePrototype = function (argument) {
|
|
2951
2951
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
2952
|
-
throw TypeError$
|
|
2952
|
+
throw TypeError$c("Can't set " + String$3(argument) + ' as a prototype');
|
|
2953
2953
|
};
|
|
2954
2954
|
|
|
2955
2955
|
/* eslint-disable no-proto -- safe */
|
|
@@ -3039,7 +3039,7 @@
|
|
|
3039
3039
|
var NUMBER = 'Number';
|
|
3040
3040
|
var NativeNumber = global_1[NUMBER];
|
|
3041
3041
|
var NumberPrototype = NativeNumber.prototype;
|
|
3042
|
-
var TypeError$
|
|
3042
|
+
var TypeError$b = global_1.TypeError;
|
|
3043
3043
|
var arraySlice$1 = functionUncurryThis(''.slice);
|
|
3044
3044
|
var charCodeAt = functionUncurryThis(''.charCodeAt);
|
|
3045
3045
|
|
|
@@ -3055,7 +3055,7 @@
|
|
|
3055
3055
|
var toNumber = function (argument) {
|
|
3056
3056
|
var it = toPrimitive(argument, 'number');
|
|
3057
3057
|
var first, third, radix, maxCode, digits, length, index, code;
|
|
3058
|
-
if (isSymbol$1(it)) throw TypeError$
|
|
3058
|
+
if (isSymbol$1(it)) throw TypeError$b('Cannot convert a Symbol value to a number');
|
|
3059
3059
|
if (typeof it == 'string' && it.length > 2) {
|
|
3060
3060
|
it = trim(it);
|
|
3061
3061
|
first = charCodeAt(it, 0);
|
|
@@ -3441,12 +3441,12 @@
|
|
|
3441
3441
|
}
|
|
3442
3442
|
});
|
|
3443
3443
|
|
|
3444
|
-
var TypeError$
|
|
3444
|
+
var TypeError$a = global_1.TypeError;
|
|
3445
3445
|
|
|
3446
3446
|
// `Assert: IsConstructor(argument) is true`
|
|
3447
3447
|
var aConstructor = function (argument) {
|
|
3448
3448
|
if (isConstructor(argument)) return argument;
|
|
3449
|
-
throw TypeError$
|
|
3449
|
+
throw TypeError$a(tryToString(argument) + ' is not a constructor');
|
|
3450
3450
|
};
|
|
3451
3451
|
|
|
3452
3452
|
var SPECIES$2 = wellKnownSymbol('species');
|
|
@@ -3878,7 +3878,7 @@
|
|
|
3878
3878
|
var TypedArray = Int8Array$4 && objectGetPrototypeOf(Int8Array$4);
|
|
3879
3879
|
var TypedArrayPrototype$1 = Int8ArrayPrototype$1 && objectGetPrototypeOf(Int8ArrayPrototype$1);
|
|
3880
3880
|
var ObjectPrototype$2 = Object.prototype;
|
|
3881
|
-
var TypeError$
|
|
3881
|
+
var TypeError$9 = global_1.TypeError;
|
|
3882
3882
|
|
|
3883
3883
|
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
3884
3884
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
@@ -3922,12 +3922,12 @@
|
|
|
3922
3922
|
|
|
3923
3923
|
var aTypedArray$m = function (it) {
|
|
3924
3924
|
if (isTypedArray(it)) return it;
|
|
3925
|
-
throw TypeError$
|
|
3925
|
+
throw TypeError$9('Target is not a typed array');
|
|
3926
3926
|
};
|
|
3927
3927
|
|
|
3928
3928
|
var aTypedArrayConstructor$2 = function (C) {
|
|
3929
3929
|
if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
|
|
3930
|
-
throw TypeError$
|
|
3930
|
+
throw TypeError$9(tryToString(C) + ' is not a typed array constructor');
|
|
3931
3931
|
};
|
|
3932
3932
|
|
|
3933
3933
|
var exportTypedArrayMethod$n = function (KEY, property, forced, options) {
|
|
@@ -3991,7 +3991,7 @@
|
|
|
3991
3991
|
if (!NATIVE_ARRAY_BUFFER_VIEWS$1 || !isCallable(TypedArray) || TypedArray === Function.prototype) {
|
|
3992
3992
|
// eslint-disable-next-line no-shadow -- safe
|
|
3993
3993
|
TypedArray = function TypedArray() {
|
|
3994
|
-
throw TypeError$
|
|
3994
|
+
throw TypeError$9('Incorrect invocation');
|
|
3995
3995
|
};
|
|
3996
3996
|
if (NATIVE_ARRAY_BUFFER_VIEWS$1) for (NAME in TypedArrayConstructorsList) {
|
|
3997
3997
|
if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
|
|
@@ -4062,11 +4062,11 @@
|
|
|
4062
4062
|
return target;
|
|
4063
4063
|
};
|
|
4064
4064
|
|
|
4065
|
-
var TypeError$
|
|
4065
|
+
var TypeError$8 = global_1.TypeError;
|
|
4066
4066
|
|
|
4067
4067
|
var anInstance = function (it, Prototype) {
|
|
4068
4068
|
if (objectIsPrototypeOf(Prototype, it)) return it;
|
|
4069
|
-
throw TypeError$
|
|
4069
|
+
throw TypeError$8('Incorrect invocation');
|
|
4070
4070
|
};
|
|
4071
4071
|
|
|
4072
4072
|
var RangeError$7 = global_1.RangeError;
|
|
@@ -4464,12 +4464,12 @@
|
|
|
4464
4464
|
|| iterators[classof(it)];
|
|
4465
4465
|
};
|
|
4466
4466
|
|
|
4467
|
-
var TypeError$
|
|
4467
|
+
var TypeError$7 = global_1.TypeError;
|
|
4468
4468
|
|
|
4469
4469
|
var getIterator = function (argument, usingIterator) {
|
|
4470
4470
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
|
4471
4471
|
if (aCallable(iteratorMethod)) return anObject(functionCall(iteratorMethod, argument));
|
|
4472
|
-
throw TypeError$
|
|
4472
|
+
throw TypeError$7(tryToString(argument) + ' is not iterable');
|
|
4473
4473
|
};
|
|
4474
4474
|
|
|
4475
4475
|
var ITERATOR$2 = wellKnownSymbol('iterator');
|
|
@@ -5013,7 +5013,7 @@
|
|
|
5013
5013
|
});
|
|
5014
5014
|
});
|
|
5015
5015
|
|
|
5016
|
-
var TypeError$
|
|
5016
|
+
var TypeError$6 = global_1.TypeError;
|
|
5017
5017
|
|
|
5018
5018
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
5019
5019
|
var createMethod$1 = function (IS_RIGHT) {
|
|
@@ -5032,7 +5032,7 @@
|
|
|
5032
5032
|
}
|
|
5033
5033
|
index += i;
|
|
5034
5034
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
5035
|
-
throw TypeError$
|
|
5035
|
+
throw TypeError$6('Reduce of empty array with no initial value');
|
|
5036
5036
|
}
|
|
5037
5037
|
}
|
|
5038
5038
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -5383,7 +5383,7 @@
|
|
|
5383
5383
|
var ObjectPrototype = Object[PROTOTYPE];
|
|
5384
5384
|
var $Symbol = global_1.Symbol;
|
|
5385
5385
|
var SymbolPrototype$1 = $Symbol && $Symbol[PROTOTYPE];
|
|
5386
|
-
var TypeError$
|
|
5386
|
+
var TypeError$5 = global_1.TypeError;
|
|
5387
5387
|
var QObject = global_1.QObject;
|
|
5388
5388
|
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
5389
5389
|
var nativeGetOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
@@ -5500,7 +5500,7 @@
|
|
|
5500
5500
|
// https://tc39.es/ecma262/#sec-symbol-constructor
|
|
5501
5501
|
if (!nativeSymbol) {
|
|
5502
5502
|
$Symbol = function Symbol() {
|
|
5503
|
-
if (objectIsPrototypeOf(SymbolPrototype$1, this)) throw TypeError$
|
|
5503
|
+
if (objectIsPrototypeOf(SymbolPrototype$1, this)) throw TypeError$5('Symbol is not a constructor');
|
|
5504
5504
|
var description = !arguments.length || arguments[0] === undefined ? undefined : toString_1(arguments[0]);
|
|
5505
5505
|
var tag = uid(description);
|
|
5506
5506
|
var setter = function (value) {
|
|
@@ -5569,7 +5569,7 @@
|
|
|
5569
5569
|
// `Symbol.keyFor` method
|
|
5570
5570
|
// https://tc39.es/ecma262/#sec-symbol.keyfor
|
|
5571
5571
|
keyFor: function keyFor(sym) {
|
|
5572
|
-
if (!isSymbol$1(sym)) throw TypeError$
|
|
5572
|
+
if (!isSymbol$1(sym)) throw TypeError$5(sym + ' is not a symbol');
|
|
5573
5573
|
if (hasOwnProperty_1(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
|
5574
5574
|
},
|
|
5575
5575
|
useSetter: function () { USE_SETTER = true; },
|
|
@@ -5770,11 +5770,11 @@
|
|
|
5770
5770
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
5771
5771
|
addToUnscopables('includes');
|
|
5772
5772
|
|
|
5773
|
-
var TypeError$
|
|
5773
|
+
var TypeError$4 = global_1.TypeError;
|
|
5774
5774
|
|
|
5775
5775
|
var notARegexp = function (it) {
|
|
5776
5776
|
if (isRegexp(it)) {
|
|
5777
|
-
throw TypeError$
|
|
5777
|
+
throw TypeError$4("The method doesn't accept regular expressions");
|
|
5778
5778
|
} return it;
|
|
5779
5779
|
};
|
|
5780
5780
|
|
|
@@ -12705,7 +12705,7 @@
|
|
|
12705
12705
|
return value;
|
|
12706
12706
|
};
|
|
12707
12707
|
|
|
12708
|
-
var TypeError$
|
|
12708
|
+
var TypeError$3 = global_1.TypeError;
|
|
12709
12709
|
|
|
12710
12710
|
var Result = function (stopped, result) {
|
|
12711
12711
|
this.stopped = stopped;
|
|
@@ -12738,7 +12738,7 @@
|
|
|
12738
12738
|
iterator = iterable;
|
|
12739
12739
|
} else {
|
|
12740
12740
|
iterFn = getIteratorMethod(iterable);
|
|
12741
|
-
if (!iterFn) throw TypeError$
|
|
12741
|
+
if (!iterFn) throw TypeError$3(tryToString(iterable) + ' is not iterable');
|
|
12742
12742
|
// optimisation for array iterators
|
|
12743
12743
|
if (isArrayIteratorMethod(iterFn)) {
|
|
12744
12744
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
@@ -12760,6 +12760,13 @@
|
|
|
12760
12760
|
} return new Result(false);
|
|
12761
12761
|
};
|
|
12762
12762
|
|
|
12763
|
+
var TypeError$2 = global_1.TypeError;
|
|
12764
|
+
|
|
12765
|
+
var validateArgumentsLength = function (passed, required) {
|
|
12766
|
+
if (passed < required) throw TypeError$2('Not enough arguments');
|
|
12767
|
+
return passed;
|
|
12768
|
+
};
|
|
12769
|
+
|
|
12763
12770
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(engineUserAgent);
|
|
12764
12771
|
|
|
12765
12772
|
var engineIsNode = classofRaw(global_1.process) == 'process';
|
|
@@ -12806,10 +12813,12 @@
|
|
|
12806
12813
|
|
|
12807
12814
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
12808
12815
|
if (!set || !clear) {
|
|
12809
|
-
set = function setImmediate(
|
|
12816
|
+
set = function setImmediate(handler) {
|
|
12817
|
+
validateArgumentsLength(arguments.length, 1);
|
|
12818
|
+
var fn = isCallable(handler) ? handler : Function$1(handler);
|
|
12810
12819
|
var args = arraySlice(arguments, 1);
|
|
12811
12820
|
queue$1[++counter] = function () {
|
|
12812
|
-
functionApply(
|
|
12821
|
+
functionApply(fn, undefined, args);
|
|
12813
12822
|
};
|
|
12814
12823
|
defer(counter);
|
|
12815
12824
|
return counter;
|
|
@@ -16778,8 +16787,10 @@
|
|
|
16778
16787
|
|
|
16779
16788
|
var urlAlphabet = 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
16780
16789
|
|
|
16781
|
-
var customAlphabet = function customAlphabet(alphabet
|
|
16790
|
+
var customAlphabet = function customAlphabet(alphabet) {
|
|
16791
|
+
var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21;
|
|
16782
16792
|
return function () {
|
|
16793
|
+
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
|
|
16783
16794
|
var id = '';
|
|
16784
16795
|
var i = size;
|
|
16785
16796
|
|
|
@@ -24826,7 +24837,7 @@
|
|
|
24826
24837
|
|
|
24827
24838
|
|
|
24828
24839
|
Runner.prototype.runTest = function (fn) {
|
|
24829
|
-
if (this._opts.dryRun) return fn
|
|
24840
|
+
if (this._opts.dryRun) return Runner.immediately(fn);
|
|
24830
24841
|
var self = this;
|
|
24831
24842
|
var test = this.test;
|
|
24832
24843
|
|
|
@@ -27762,9 +27773,14 @@
|
|
|
27762
27773
|
|
|
27763
27774
|
if (options && options.reporterOptions) {
|
|
27764
27775
|
if (options.reporterOptions.output) {
|
|
27765
|
-
{
|
|
27776
|
+
if (!fs.createWriteStream) {
|
|
27766
27777
|
throw createUnsupportedError('file output not supported in browser');
|
|
27767
27778
|
}
|
|
27779
|
+
|
|
27780
|
+
fs.mkdirSync(path.dirname(options.reporterOptions.output), {
|
|
27781
|
+
recursive: true
|
|
27782
|
+
});
|
|
27783
|
+
self.fileStream = fs.createWriteStream(options.reporterOptions.output);
|
|
27768
27784
|
} // get the suite name from the reporter options (if provided)
|
|
27769
27785
|
|
|
27770
27786
|
|
|
@@ -28324,7 +28340,7 @@
|
|
|
28324
28340
|
});
|
|
28325
28341
|
|
|
28326
28342
|
var name = "mocha";
|
|
28327
|
-
var version = "9.2.
|
|
28343
|
+
var version = "9.2.2";
|
|
28328
28344
|
var homepage = "https://mochajs.org/";
|
|
28329
28345
|
var notifyLogo = "https://ibin.co/4QuRuGjXvl36.png";
|
|
28330
28346
|
var _package = {
|
|
@@ -29404,8 +29420,7 @@
|
|
|
29404
29420
|
* MIT Licensed
|
|
29405
29421
|
*/
|
|
29406
29422
|
|
|
29407
|
-
var
|
|
29408
|
-
createInvalidReporterError = errors.createInvalidReporterError,
|
|
29423
|
+
var createInvalidReporterError = errors.createInvalidReporterError,
|
|
29409
29424
|
createInvalidInterfaceError = errors.createInvalidInterfaceError,
|
|
29410
29425
|
createMochaInstanceAlreadyDisposedError = errors.createMochaInstanceAlreadyDisposedError,
|
|
29411
29426
|
createMochaInstanceAlreadyRunningError = errors.createMochaInstanceAlreadyRunningError,
|
|
@@ -29745,30 +29760,29 @@
|
|
|
29745
29760
|
|
|
29746
29761
|
|
|
29747
29762
|
if (!reporter) {
|
|
29763
|
+
var foundReporter;
|
|
29764
|
+
|
|
29748
29765
|
try {
|
|
29749
|
-
|
|
29766
|
+
foundReporter = require.resolve(reporterName);
|
|
29767
|
+
reporter = commonjsRequire(foundReporter);
|
|
29750
29768
|
} catch (err) {
|
|
29751
|
-
if (
|
|
29752
|
-
|
|
29753
|
-
|
|
29754
|
-
|
|
29755
|
-
|
|
29756
|
-
|
|
29757
|
-
|
|
29758
|
-
}
|
|
29759
|
-
|
|
29769
|
+
if (foundReporter) {
|
|
29770
|
+
throw createInvalidReporterError(err.message, foundReporter);
|
|
29771
|
+
} // Try to load reporters from a cwd-relative path
|
|
29772
|
+
|
|
29773
|
+
|
|
29774
|
+
try {
|
|
29775
|
+
reporter = commonjsRequire(path.resolve(reporterName));
|
|
29776
|
+
} catch (e) {
|
|
29777
|
+
throw createInvalidReporterError(e.message, reporterName);
|
|
29760
29778
|
}
|
|
29761
29779
|
}
|
|
29762
29780
|
}
|
|
29763
29781
|
|
|
29764
|
-
if (!reporter) {
|
|
29765
|
-
throw createInvalidReporterError("invalid reporter '".concat(reporterName, "'"), reporterName);
|
|
29766
|
-
}
|
|
29767
|
-
|
|
29768
29782
|
this._reporter = reporter;
|
|
29769
29783
|
}
|
|
29770
29784
|
|
|
29771
|
-
this.options.reporterOption = reporterOptions; // alias option name is used in
|
|
29785
|
+
this.options.reporterOption = reporterOptions; // alias option name is used in built-in reporters xunit/tap/progress
|
|
29772
29786
|
|
|
29773
29787
|
this.options.reporterOptions = reporterOptions;
|
|
29774
29788
|
return this;
|