Skip to content

Commit

Permalink
Corrected the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
netikular committed Mar 7, 2024
1 parent 9b84526 commit 7cf0d84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/test_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class MetaType < GraphQL::Schema::Object
field :count, IntTypeType, null: false
end

class Locale < GraphQL::Schema::Enum
value "en", "a enum for english"
end

class QueryType < GraphQL::Schema::Object
field :int_type, IntTypeType, null: false

Expand All @@ -30,7 +34,9 @@ def _all_under_tests_meta

field :all_under_tests, PersonType, null: false do
argument :skip, IntTypeType, required: false
argument :locale, Locale, required: false
argument :first, IntTypeType, required: false
argument :fallback_locales, [Locale], required: false
end

def all_under_tests
Expand Down

0 comments on commit 7cf0d84

Please sign in to comment.