Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee committed Jan 2, 2017
1 parent 9926393 commit 4cd3f63
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
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`] = `
"expect(received).toEqual(expected)
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:
Expand All @@ -17,8 +17,8 @@ Difference:
@@ -1,4 +1,4 @@
 Object {
[32m- \"b\": 1,[39m
[31m+ \"a\": 1,[39m
[2m \"toJSON\": [Function toJSON],[22m
[32m- "b": 1,[39m
[31m+ "a": 1,[39m
[2m "toJSON": [Function toJSON],[22m
 }"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -1816,15 +1816,24 @@ Received:
[Function anonymous]"
`;

exports[`.toEqual() expect({"a": 1, "b": [Function b], "c": true}).not.toEqual({"a": 1, "b": {"expectedObject": [Function Function]}, "c": {}}) 1`] = `
exports[`.toEqual() expect({"a": 1, "b": [Function b], "c": true}).not.toEqual({"a": 1, "b": <any(Function)>, "c": <anything>}) 1`] = `
"expect(received).not.toEqual(expected)

Expected value to not equal:
{\"a\": 1, \"b\": {\"expectedObject\": [Function Function]}, \"c\": {}}
{\"a\": 1, \"b\": <any(Function)>, \"c\": <anything>}
Received:
{\"a\": 1, \"b\": [Function b], \"c\": true}"
`;

exports[`.toEqual() expect({"a": 1, "b": [Function b], "c": true}).not.toEqual({"a": 1, "b": {"expectedObject": [Function Function]}, "c": {}}) 1`] = `
"expect(received).not.toEqual(expected)

Expected value to not equal:
{"a": 1, "b": {"expectedObject": [Function Function]}, "c": {}}
Received:
{"a": 1, "b": [Function b], "c": true}"
`;

exports[`.toEqual() expect({"a": 1, "b": 2}).not.toEqual(<objectContaining({"a": 1})>) 1`] = `
"expect(received).not.toEqual(expected)

Expand Down

0 comments on commit 4cd3f63

Please sign in to comment.