Sha256: 0e05202a2121bfcebd758062585cd021c7bd2fe48b31e38e700f6db5e352f857
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
# require "spec_helper" # # describe GraphQL::StaticValidation::ComplexityValidator do # let(:query_string) {query_string)} # let(:validator) { GraphQL::StaticValidation::Validator.new(schema: DummySchema, rules: [complexity_validator]) } # let(:errors) { validator.validate(document) } # let(:complexity_validator) { GraphQL::StaticValidation::ComplexityValidator.new(max_fields: 6, list_multiplier: 2) } # # describe "too many fields" do # it "adds errors if there are too many fields" # it "counts fields for each time they're included from fragments" # end # # it "multiplies fields inside list types" # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphql-0.12.0 | spec/graphql/static_validation/complexity_validator_spec.rb |