@sprucelabs/test-utils 5.1.546 → 5.1.547
Sign up to get free protection for your applications and to get access to all the features.
package/build/assert/assert.js
CHANGED
@@ -181,7 +181,7 @@ const assert = {
|
|
181
181
|
msg = `The path ${stringify(path)} was not found in ${stringify(haystack)}`;
|
182
182
|
}
|
183
183
|
else {
|
184
|
-
msg = `Expected
|
184
|
+
msg = `Expected:\n${chalk_1.default.green(stringify(needle[path]))}\nbut found:\n${chalk_1.default.red(stringify(actual))}\nat:\n${stringify(path)}\nin:\n${stringify(haystack)}`;
|
185
185
|
}
|
186
186
|
if (typeof expected === 'string' &&
|
187
187
|
typeof actual === 'string' &&
|
@@ -162,7 +162,7 @@ const assert = {
|
|
162
162
|
msg = `The path ${stringify(path)} was not found in ${stringify(haystack)}`;
|
163
163
|
}
|
164
164
|
else {
|
165
|
-
msg = `Expected
|
165
|
+
msg = `Expected:\n${chalk.green(stringify(needle[path]))}\nbut found:\n${chalk.red(stringify(actual))}\nat:\n${stringify(path)}\nin:\n${stringify(haystack)}`;
|
166
166
|
}
|
167
167
|
if (typeof expected === 'string' &&
|
168
168
|
typeof actual === 'string' &&
|