@sprucelabs/test-utils 5.1.546 → 5.1.547
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.
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' &&
|