Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: node.js 12 compatibility for object snapshot test. (#1084)
node.js 12 changes the format of `util.inspect`, this causes snapshot mismatch. Replace our one object snapshot with a JSON stringified array of `[name, value]` pairs representing the object. Use an array sorted by names as JSON.stringify does not guarantee order of elements in an object.
- Loading branch information
1 parent
a7bc7ae
commit 6fc109f
Showing
3 changed files
with
47 additions
and
15 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