@sprucelabs/test-utils 5.1.429 → 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
@@ -11,6 +11,7 @@ class AssertionError extends Error {
|
|
11
11
|
this.message = message;
|
12
12
|
this.stack =
|
13
13
|
this.message +
|
14
|
+
'\n' +
|
14
15
|
StackCleaner_1.default.clean(`${((_a = stack !== null && stack !== void 0 ? stack : this.stack) !== null && _a !== void 0 ? _a : '').replace(message, '')}`);
|
15
16
|
}
|
16
17
|
}
|
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
|
}
|
@@ -6,6 +6,7 @@ export default class AssertionError extends Error {
|
|
6
6
|
this.message = message;
|
7
7
|
this.stack =
|
8
8
|
this.message +
|
9
|
+
'\n' +
|
9
10
|
StackCleaner.clean(`${((_a = stack !== null && stack !== void 0 ? stack : this.stack) !== null && _a !== void 0 ? _a : '').replace(message, '')}`);
|
10
11
|
}
|
11
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
|
}
|