-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement matchStandaloneJSON (#113)
- Loading branch information
1 parent
f81115d
commit 560fde0
Showing
23 changed files
with
735 additions
and
233 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
9 changes: 9 additions & 0 deletions
9
...snapshots__/TestMatchStandaloneJSON_matchers_Any_matcher_should_ignore_fields_1.snap.json
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"age": 10, | ||
"nested": { | ||
"now": [ | ||
"<Any value>" | ||
] | ||
}, | ||
"user": "mock-user" | ||
} |
5 changes: 5 additions & 0 deletions
5
...hots__/TestMatchStandaloneJSON_matchers_Custom_matcher_JSON_string_validation_1.snap.json
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"age": "<less than 5 age>", | ||
"email": "mock@email.com", | ||
"user": "mock-user" | ||
} |
11 changes: 11 additions & 0 deletions
11
...napshots__/TestMatchStandaloneJSON_matchers_Custom_matcher_struct_marshalling_1.snap.json
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"email": "mock-user@email.com", | ||
"keys": [ | ||
1, | ||
2, | ||
3, | ||
4, | ||
5 | ||
], | ||
"name": "mock-user" | ||
} |
3 changes: 3 additions & 0 deletions
3
...daloneJSON_matchers_Type_matcher_should_create_snapshot_with_type_placeholder_1.snap.json
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"data": "<Type:float64>" | ||
} |
3 changes: 3 additions & 0 deletions
3
...daloneJSON_matchers_Type_matcher_should_create_snapshot_with_type_placeholder_2.snap.json
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"metadata": "<Type:map[string]interface {}>" | ||
} |
5 changes: 5 additions & 0 deletions
5
examples/__snapshots__/TestMatchStandaloneJSON_should_create_a_prettyJSON_snap_1.snap.json
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"age": 10, | ||
"email": "mock@email.com", | ||
"user": "mock-user" | ||
} |
5 changes: 5 additions & 0 deletions
5
examples/__snapshots__/TestMatchStandaloneJSON_should_create_a_prettyJSON_snap_2.snap.json
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"age": 10, | ||
"email": "mock@email.com", | ||
"user": "mock-user" | ||
} |
8 changes: 8 additions & 0 deletions
8
...ples/__snapshots__/TestMatchStandaloneJSON_should_make_a_json_object_snapshot_1.snap.json
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"mock-0": "value", | ||
"mock-1": 2, | ||
"mock-2": { | ||
"Msg": "Hello World" | ||
}, | ||
"mock-3": 10.4 | ||
} |
11 changes: 11 additions & 0 deletions
11
examples/__snapshots__/TestMatchStandaloneJSON_should_marshal_struct_1.snap.json
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"email": "mock@email.com", | ||
"keys": [ | ||
1, | ||
2, | ||
3, | ||
4, | ||
5 | ||
], | ||
"name": "mock-name" | ||
} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.