-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
17 changes: 8 additions & 9 deletions
17
packages/jest-matcher-utils/src/__tests__/__snapshots__/index-test.js.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
exports[`.stringify() reduces maxDepth if stringifying very large objects 1`] = `"{"a": 1, "b": [Object]}"`; | ||
exports[`.stringify() reduces maxDepth if stringifying very large objects 1`] = `"{\"a\": 1, \"b\": [Object]}"`; | ||
exports[`.stringify() reduces maxDepth if stringifying very large objects 2`] = `"{"a": 1, "b": {"0": "test", "1": "test", "2": "test", "3": "test", "4": "test", "5": "test", "6": "test", "7": "test", "8": "test", "9": "test"}}"`; | ||
exports[`.stringify() reduces maxDepth if stringifying very large objects 2`] = `"{\"a\": 1, \"b\": {\"0\": \"test\", \"1\": \"test\", \"2\": \"test\", \"3\": \"test\", \"4\": \"test\", \"5\": \"test\", \"6\": \"test\", \"7\": \"test\", \"8\": \"test\", \"9\": \"test\"}}"`; | ||
exports[`.stringify() toJSON errors when comparing two objects 1`] = ` | ||
"[2mexpect([22m[31mreceived[39m[2m).toEqual([22m[32mexpected[39m[2m)[22m | ||
Expected value to equal: | ||
[32m{"b": 1, "toJSON": [Function toJSON]}[39m | ||
[32m{\"b\": 1, \"toJSON\": [Function toJSON]}[39m | ||
Received: | ||
[31m{"a": 1, "toJSON": [Function toJSON]}[39m | ||
[31m{\"a\": 1, \"toJSON\": [Function toJSON]}[39m | ||
Difference: | ||
[32m- Expected[39m | ||
[31m+ Received[39m | ||
[33m@@ -1,4 +1,4 @@ | ||
[39m[2m Object {[22m | ||
[32m- "b": 1,[39m | ||
[31m+ "a": 1,[39m | ||
[2m "toJSON": [Function toJSON],[22m | ||
[2m Object {[22m | ||
[32m- \"b\": 1,[39m | ||
[31m+ \"a\": 1,[39m | ||
[2m \"toJSON\": [Function toJSON],[22m | ||
[2m }[22m" | ||
`; |
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