-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I'm working on expanding test coverage to cover some cases that I think could use more testing Ticket: [MDB-170](https://hasurahq.atlassian.net/browse/MDB-170)
- Loading branch information
Showing
25 changed files
with
802 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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
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
11 changes: 11 additions & 0 deletions
11
...tegration-tests/src/tests/snapshots/integration_tests__tests__basic__filters_by_date.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
source: crates/integration-tests/src/tests/basic.rs | ||
expression: "graphql_query(r#\"\n query ($dateInput: Date) {\n movies(\n order_by: {id: Asc},\n where: {released: {_gt: $dateInput}}\n ) {\n title\n released\n }\n }\n \"#).variables(json!({\n \"dateInput\": \"2016-03-01T00:00Z\"\n })).run().await?" | ||
--- | ||
data: | ||
movies: | ||
- title: Knight of Cups | ||
released: "2016-03-04T00:00:00.000000000Z" | ||
- title: The Treasure | ||
released: "2016-03-23T00:00:00.000000000Z" | ||
errors: ~ |
31 changes: 31 additions & 0 deletions
31
...ests/src/tests/snapshots/integration_tests__tests__basic__selects_array_within_array.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
source: crates/integration-tests/src/tests/basic.rs | ||
expression: "graphql_query(r#\"\n query {\n artistsWithAlbumsAndTracks(limit: 1, order_by: {id: Asc}) {\n name\n albums {\n title\n tracks {\n name\n }\n }\n }\n }\n \"#).run().await?" | ||
--- | ||
data: | ||
artistsWithAlbumsAndTracks: | ||
- name: AC/DC | ||
albums: | ||
- title: For Those About To Rock We Salute You | ||
tracks: | ||
- name: Breaking The Rules | ||
- name: C.O.D. | ||
- name: Evil Walks | ||
- name: For Those About To Rock (We Salute You) | ||
- name: Inject The Venom | ||
- name: "Let's Get It Up" | ||
- name: Night Of The Long Knives | ||
- name: Put The Finger On You | ||
- name: Snowballed | ||
- name: Spellbound | ||
- title: Let There Be Rock | ||
tracks: | ||
- name: Bad Boy Boogie | ||
- name: Dog Eat Dog | ||
- name: Go Down | ||
- name: "Hell Ain't A Bad Place To Be" | ||
- name: Let There Be Rock | ||
- name: Overdose | ||
- name: Problem Child | ||
- name: Whole Lotta Rosie | ||
errors: ~ |
Oops, something went wrong.