@sprucelabs/test-utils 3.4.1 → 3.4.3

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.
@@ -213,7 +213,7 @@ const assert = {
213
213
  assert_utility_1.default.checkDoesThrowError(matcher, err, msg);
214
214
  return err;
215
215
  }
216
- this.fail('Expected a thrown error, but never got one!');
216
+ this.fail(msg !== null && msg !== void 0 ? msg : 'Expected a thrown error, but never got one!');
217
217
  },
218
218
  async doesThrowAsync(cb, matcher, msg) {
219
219
  try {
@@ -223,7 +223,7 @@ const assert = {
223
223
  assert_utility_1.default.checkDoesThrowError(matcher, err, msg);
224
224
  return err;
225
225
  }
226
- this.fail('Expected a thrown error, but never got one!');
226
+ this.fail(msg !== null && msg !== void 0 ? msg : 'Expected a thrown error, but never got one!');
227
227
  },
228
228
  fail: assert_utility_1.default.fail,
229
229
  isInstanceOf(actual, Class) {
@@ -217,7 +217,7 @@ const assert = {
217
217
  assertUtil.checkDoesThrowError(matcher, err, msg);
218
218
  return err;
219
219
  }
220
- this.fail('Expected a thrown error, but never got one!');
220
+ this.fail(msg !== null && msg !== void 0 ? msg : 'Expected a thrown error, but never got one!');
221
221
  },
222
222
  doesThrowAsync(cb, matcher, msg) {
223
223
  return __awaiter(this, void 0, void 0, function* () {
@@ -228,7 +228,7 @@ const assert = {
228
228
  assertUtil.checkDoesThrowError(matcher, err, msg);
229
229
  return err;
230
230
  }
231
- this.fail('Expected a thrown error, but never got one!');
231
+ this.fail(msg !== null && msg !== void 0 ? msg : 'Expected a thrown error, but never got one!');
232
232
  });
233
233
  },
234
234
  fail: assertUtil.fail,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.4.1",
6
+ "version": "3.4.3",
7
7
  "files": [
8
8
  "build"
9
9
  ],
@@ -76,7 +76,7 @@
76
76
  "@sprucelabs/esm-postbuild": "^2.0.22",
77
77
  "@sprucelabs/jest-sheets-reporter": "^2.0.20",
78
78
  "@sprucelabs/semantic-release": "^4.0.8",
79
- "@sprucelabs/test": "^7.7.420",
79
+ "@sprucelabs/test": "^7.7.421",
80
80
  "@types/deep-equal": "^1.0.1",
81
81
  "@types/jest": "^29.4.0",
82
82
  "@types/lodash": "^4.14.191",
@@ -89,7 +89,7 @@
89
89
  "prettier": "^2.8.4",
90
90
  "ts-node": "^10.9.1",
91
91
  "tsc-watch": "^6.0.0",
92
- "tsconfig-paths": "^4.1.2",
92
+ "tsconfig-paths": "^3.14.2",
93
93
  "typescript": "^4.9.5"
94
94
  },
95
95
  "jest": {