Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Dec 9, 2024
1 parent 33a4152 commit 722e087
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 23 deletions.
22 changes: 15 additions & 7 deletions examples/postgres/tests/guard_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ async fn entity_guard() {
.execute(
r#"
{
language {
language(orderBy: { languageId: ASC }) {
nodes {
languageId
name
Expand All @@ -302,27 +302,35 @@ async fn entity_guard() {
"nodes": [
{
"languageId": 1,
"name": "English"
"name": "English "
},
{
"languageId": 2,
"name": "Italian"
"name": "Italian "
},
{
"languageId": 3,
"name": "Japanese"
"name": "Japanese "
},
{
"languageId": 4,
"name": "Mandarin"
"name": "Mandarin "
},
{
"languageId": 5,
"name": "French"
"name": "French "
},
{
"languageId": 6,
"name": "German"
"name": "German "
},
{
"languageId": 7,
"name": "Swedish "
},
{
"languageId": 8,
"name": "Danish "
}
]
}
Expand Down
32 changes: 16 additions & 16 deletions examples/postgres/tests/mutation_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,27 +238,27 @@ async fn test_create_batch_mutation() {
"nodes": [
{
"languageId": 1,
"name": "English"
"name": "English "
},
{
"languageId": 2,
"name": "Italian"
"name": "Italian "
},
{
"languageId": 3,
"name": "Japanese"
"name": "Japanese "
},
{
"languageId": 4,
"name": "Mandarin"
"name": "Mandarin "
},
{
"languageId": 5,
"name": "French"
"name": "French "
},
{
"languageId": 6,
"name": "German"
"name": "German "
}
]
}
Expand Down Expand Up @@ -287,10 +287,10 @@ async fn test_create_batch_mutation() {
{
"languageCreateBatch": [
{
"name": "Swedish"
"name": "Swedish "
},
{
"name": "Danish"
"name": "Danish "
}
]
}
Expand All @@ -317,28 +317,28 @@ async fn test_create_batch_mutation() {
"language": {
"nodes": [
{
"name": "English"
"name": "English "
},
{
"name": "Italian"
"name": "Italian "
},
{
"name": "Japanese"
"name": "Japanese "
},
{
"name": "Mandarin"
"name": "Mandarin "
},
{
"name": "French"
"name": "French "
},
{
"name": "German"
"name": "German "
},
{
"name": "Swedish"
"name": "Swedish "
},
{
"name": "Danish"
"name": "Danish "
}
]
}
Expand Down

0 comments on commit 722e087

Please sign in to comment.