-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: object diff when assertion failed (#562)
Expose `Deno.inspect` as `Zinnia.inspect`. Fix the error message printed by assertion functions to describe object properties. Before this fix: ``` error: Uncaught AssertionError: Values are not equal. [Diff] Actual / Expected "[object Object]" at assertEquals (ext:zinnia_runtime/vendored/asserts.bundle.js:479:11) ``` After the fix: ``` error: Uncaught AssertionError: Values are not equal. [Diff] Actual / Expected { - foo: "bar", + foo: "123", } at assertEquals (ext:zinnia_runtime/vendored/asserts.bundle.js:495:11) ``` Signed-off-by: Miroslav Bajtoš <[email protected]>
- Loading branch information
Showing
4 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters