@sprucelabs/test-utils 5.1.427 → 5.1.429

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,8 +8,10 @@ class AssertionError extends Error {
8
8
  constructor(message, stack) {
9
9
  var _a;
10
10
  super(message);
11
- this.message = StackCleaner_1.default.clean(message ? `${message}\n` : '');
12
- this.stack = StackCleaner_1.default.clean(`${this.message}${((_a = stack !== null && stack !== void 0 ? stack : this.stack) !== null && _a !== void 0 ? _a : '').replace(message, '')}`);
11
+ this.message = message;
12
+ this.stack =
13
+ this.message +
14
+ StackCleaner_1.default.clean(`${((_a = stack !== null && stack !== void 0 ? stack : this.stack) !== null && _a !== void 0 ? _a : '').replace(message, '')}`);
13
15
  }
14
16
  }
15
17
  exports.default = AssertionError;
@@ -3,7 +3,9 @@ export default class AssertionError extends Error {
3
3
  constructor(message, stack) {
4
4
  var _a;
5
5
  super(message);
6
- this.message = StackCleaner.clean(message ? `${message}\n` : '');
7
- this.stack = StackCleaner.clean(`${this.message}${((_a = stack !== null && stack !== void 0 ? stack : this.stack) !== null && _a !== void 0 ? _a : '').replace(message, '')}`);
6
+ this.message = message;
7
+ this.stack =
8
+ this.message +
9
+ StackCleaner.clean(`${((_a = stack !== null && stack !== void 0 ? stack : this.stack) !== null && _a !== void 0 ? _a : '').replace(message, '')}`);
8
10
  }
9
11
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "5.1.427",
6
+ "version": "5.1.429",
7
7
  "files": [
8
8
  "build"
9
9
  ],