@sprucelabs/test-utils 5.1.420 → 5.1.422
Sign up to get free protection for your applications and to get access to all the features.
package/build/assert/assert.js
CHANGED
@@ -113,7 +113,7 @@ const assert = {
|
|
113
113
|
doesNotInclude(haystack, needle, message) {
|
114
114
|
let doesInclude = false;
|
115
115
|
try {
|
116
|
-
this.doesInclude(haystack, needle);
|
116
|
+
this.doesInclude(haystack, needle, message);
|
117
117
|
doesInclude = true;
|
118
118
|
}
|
119
119
|
catch {
|
@@ -147,7 +147,7 @@ const assert = {
|
|
147
147
|
if (isHaystackObject && (0, isObjectLike_1.default)(needle)) {
|
148
148
|
try {
|
149
149
|
//@ts-ignore
|
150
|
-
this.isEqualDeep(haystack, needle);
|
150
|
+
this.isEqualDeep(haystack, needle, message);
|
151
151
|
return;
|
152
152
|
}
|
153
153
|
catch { }
|
@@ -178,14 +178,14 @@ const assert = {
|
|
178
178
|
}
|
179
179
|
else {
|
180
180
|
//@ts-ignore
|
181
|
-
this.isEqualDeep(expected, actual, msg, false);
|
181
|
+
this.isEqualDeep(expected, actual, buildErrorMessage(msg, message), false);
|
182
182
|
}
|
183
183
|
return;
|
184
184
|
}
|
185
185
|
if (isHaystackObject && (0, isObjectLike_1.default)(needle) && path) {
|
186
186
|
const { actualBeforeArray, pathAfterFirstArray } = assert_utility_1.default.splitPathBasedOnArrayNotation(path, haystack);
|
187
187
|
if (!Array.isArray(actualBeforeArray)) {
|
188
|
-
this.fail(msg);
|
188
|
+
this.fail(buildErrorMessage(msg, message));
|
189
189
|
}
|
190
190
|
const found = assert_utility_1.default.doHaystacksPassCheck(actualBeforeArray, {
|
191
191
|
[pathAfterFirstArray]: expected,
|
@@ -108,7 +108,7 @@ const assert = {
|
|
108
108
|
doesNotInclude(haystack, needle, message) {
|
109
109
|
let doesInclude = false;
|
110
110
|
try {
|
111
|
-
this.doesInclude(haystack, needle);
|
111
|
+
this.doesInclude(haystack, needle, message);
|
112
112
|
doesInclude = true;
|
113
113
|
}
|
114
114
|
catch {
|
@@ -142,7 +142,7 @@ const assert = {
|
|
142
142
|
if (isHaystackObject && isObjectLike(needle)) {
|
143
143
|
try {
|
144
144
|
//@ts-ignore
|
145
|
-
this.isEqualDeep(haystack, needle);
|
145
|
+
this.isEqualDeep(haystack, needle, message);
|
146
146
|
return;
|
147
147
|
}
|
148
148
|
catch { }
|
@@ -173,14 +173,14 @@ const assert = {
|
|
173
173
|
}
|
174
174
|
else {
|
175
175
|
//@ts-ignore
|
176
|
-
this.isEqualDeep(expected, actual, msg, false);
|
176
|
+
this.isEqualDeep(expected, actual, buildErrorMessage(msg, message), false);
|
177
177
|
}
|
178
178
|
return;
|
179
179
|
}
|
180
180
|
if (isHaystackObject && isObjectLike(needle) && path) {
|
181
181
|
const { actualBeforeArray, pathAfterFirstArray } = assertUtil.splitPathBasedOnArrayNotation(path, haystack);
|
182
182
|
if (!Array.isArray(actualBeforeArray)) {
|
183
|
-
this.fail(msg);
|
183
|
+
this.fail(buildErrorMessage(msg, message));
|
184
184
|
}
|
185
185
|
const found = assertUtil.doHaystacksPassCheck(actualBeforeArray, {
|
186
186
|
[pathAfterFirstArray]: expected,
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"publishConfig": {
|
4
4
|
"access": "public"
|
5
5
|
},
|
6
|
-
"version": "5.1.
|
6
|
+
"version": "5.1.422",
|
7
7
|
"files": [
|
8
8
|
"build"
|
9
9
|
],
|
@@ -60,7 +60,7 @@
|
|
60
60
|
"watch.tsc": "tsc -w"
|
61
61
|
},
|
62
62
|
"dependencies": {
|
63
|
-
"@sprucelabs/error": "^6.0.
|
63
|
+
"@sprucelabs/error": "^6.0.472",
|
64
64
|
"deep-equal": "^2.2.3",
|
65
65
|
"just-clone": "^6.2.0",
|
66
66
|
"lodash": "^4.17.21",
|
@@ -68,8 +68,8 @@
|
|
68
68
|
"variable-diff": "^2.0.2"
|
69
69
|
},
|
70
70
|
"devDependencies": {
|
71
|
-
"@sprucelabs/esm-postbuild": "^6.0.
|
72
|
-
"@sprucelabs/jest-json-reporter": "^8.0.
|
71
|
+
"@sprucelabs/esm-postbuild": "^6.0.455",
|
72
|
+
"@sprucelabs/jest-json-reporter": "^8.0.472",
|
73
73
|
"@sprucelabs/jest-sheets-reporter": "^2.0.20",
|
74
74
|
"@sprucelabs/semantic-release": "^5.0.2",
|
75
75
|
"@sprucelabs/test": "^9.0.50",
|