Skip to content

Commit 284eb9f

Browse files
lilianammmatosrobrichard
authored andcommitted
update schema tests
1 parent 68547ec commit 284eb9f

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

src/type/__tests__/introspection-test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,19 @@ describe('Introspection', () => {
858858
ofType: null,
859859
},
860860
},
861+
{
862+
defaultValue: null,
863+
name: 'label',
864+
type: {
865+
kind: 'NON_NULL',
866+
name: null,
867+
ofType: {
868+
kind: 'SCALAR',
869+
name: 'String',
870+
ofType: null,
871+
},
872+
},
873+
},
861874
],
862875
},
863876
{

src/utilities/__tests__/schemaPrinter-test.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,11 @@ describe('Type System Printer', () => {
618618
Directs the executor to defer this fragment when the \`if\` argument is true or undefined.
619619
"""
620620
directive @defer(
621-
"""Defer fragment when true or undefined."""
621+
"""Deferred when true or undefined."""
622622
if: Boolean
623+
624+
"""Unique name"""
625+
label: String!
623626
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
624627
625628
"""Marks an element of a GraphQL schema as no longer supported."""
@@ -837,8 +840,11 @@ describe('Type System Printer', () => {
837840
838841
# Directs the executor to defer this fragment when the \`if\` argument is true or undefined.
839842
directive @defer(
840-
# Defer fragment when true or undefined.
843+
# Deferred when true or undefined.
841844
if: Boolean
845+
846+
# Unique name
847+
label: String!
842848
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
843849
844850
# Marks an element of a GraphQL schema as no longer supported.

0 commit comments

Comments
 (0)