Skip to content

Commit

Permalink
Add GraphQL default float value test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcg-web committed Oct 10, 2018
1 parent 2fa7a9e commit 365f7e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Config/Parser/fixtures/graphql/schema-0.11.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ union SearchResult = Human | Droid | Starship

input ReviewInput {
stars: Int! = 5
rate: Float! = 1.58
commentary: String = null
}

Expand Down
1 change: 1 addition & 0 deletions tests/Config/Parser/fixtures/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ union SearchResult = Human | Droid | Starship

input ReviewInput {
stars: Int! = 5
rate: Float! = 1.58
commentary: String = null
}

Expand Down
1 change: 1 addition & 0 deletions tests/Config/Parser/fixtures/graphql/schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
'description' => null,
'fields' => [
'stars' => ['type' => 'Int!', 'description' => null, 'defaultValue' => 5],
'rate' => ['type' => 'Float!', 'description' => null, 'defaultValue' => 1.58],
'commentary' => ['type' => 'String', 'description' => null, 'defaultValue' => null],
],
],
Expand Down

0 comments on commit 365f7e1

Please sign in to comment.