@sprucelabs/test-utils 5.1.428 → 5.1.430
Sign up to get free protection for your applications and to get access to all the features.
package/build/AssertionError.js
CHANGED
@@ -9,7 +9,10 @@ class AssertionError extends Error {
|
|
9
9
|
var _a;
|
10
10
|
super(message);
|
11
11
|
this.message = message;
|
12
|
-
this.stack =
|
12
|
+
this.stack =
|
13
|
+
this.message +
|
14
|
+
'\n' +
|
15
|
+
StackCleaner_1.default.clean(`${((_a = stack !== null && stack !== void 0 ? stack : this.stack) !== null && _a !== void 0 ? _a : '').replace(message, '')}`);
|
13
16
|
}
|
14
17
|
}
|
15
18
|
exports.default = AssertionError;
|
package/build/assert/assert.js
CHANGED
@@ -244,6 +244,6 @@ const assert = {
|
|
244
244
|
exports.default = assert;
|
245
245
|
function buildErrorMessage(defaultMessage, customMessage) {
|
246
246
|
return customMessage
|
247
|
-
? `${customMessage}\n${defaultMessage}
|
248
|
-
: defaultMessage
|
247
|
+
? `${customMessage}\n${defaultMessage}`
|
248
|
+
: defaultMessage;
|
249
249
|
}
|
@@ -4,6 +4,9 @@ export default class AssertionError extends Error {
|
|
4
4
|
var _a;
|
5
5
|
super(message);
|
6
6
|
this.message = message;
|
7
|
-
this.stack =
|
7
|
+
this.stack =
|
8
|
+
this.message +
|
9
|
+
'\n' +
|
10
|
+
StackCleaner.clean(`${((_a = stack !== null && stack !== void 0 ? stack : this.stack) !== null && _a !== void 0 ? _a : '').replace(message, '')}`);
|
8
11
|
}
|
9
12
|
}
|
@@ -239,6 +239,6 @@ const assert = {
|
|
239
239
|
export default assert;
|
240
240
|
function buildErrorMessage(defaultMessage, customMessage) {
|
241
241
|
return customMessage
|
242
|
-
? `${customMessage}\n${defaultMessage}
|
243
|
-
: defaultMessage
|
242
|
+
? `${customMessage}\n${defaultMessage}`
|
243
|
+
: defaultMessage;
|
244
244
|
}
|