Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2019-08-26 20:43:38 +0300
committerMayra Cabrera <mcabrera@gitlab.com>2019-08-26 20:43:38 +0300
commitbdd5b5b69533b8035d0a03a1d4c9de38ba3da189 (patch)
treeedd9d288399eb73d196e631e9be93d2f3de98670 /spec/requests
parent783670c4cd980ee9394b8dd639e553cfaddf19d1 (diff)
Replace echo function with a resolver
The `GraphQL::Function` has been deprecated in favor of resolvers.
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/api/graphql/multiplexed_queries_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/api/graphql/multiplexed_queries_spec.rb b/spec/requests/api/graphql/multiplexed_queries_spec.rb
index 844fd979285..9ebb57f6b9c 100644
--- a/spec/requests/api/graphql/multiplexed_queries_spec.rb
+++ b/spec/requests/api/graphql/multiplexed_queries_spec.rb
@@ -6,9 +6,9 @@ describe 'Multiplexed queries' do
it 'returns responses for multiple queries' do
queries = [
- { query: 'query($text: String) { echo(text: $text) }',
+ { query: 'query($text: String!) { echo(text: $text) }',
variables: { 'text' => 'Hello' } },
- { query: 'query($text: String) { echo(text: $text) }',
+ { query: 'query($text: String!) { echo(text: $text) }',
variables: { 'text' => 'World' } }
]
@@ -23,8 +23,8 @@ describe 'Multiplexed queries' do
it 'returns error and data combinations' do
queries = [
- { query: 'query($text: String) { broken query }' },
- { query: 'query working($text: String) { echo(text: $text) }',
+ { query: 'query($text: String!) { broken query }' },
+ { query: 'query working($text: String!) { echo(text: $text) }',
variables: { 'text' => 'World' } }
]