Skip to content

Commit 2349ab7

Browse files
update schema tests
1 parent 58a52c0 commit 2349ab7

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
@@ -594,8 +594,11 @@ describe('Type System Printer', () => {
594594
Directs the executor to defer this fragment when the \`if\` argument is true or undefined.
595595
"""
596596
directive @defer(
597-
"""Defer fragment when true or undefined."""
597+
"""Deferred when true or undefined."""
598598
if: Boolean
599+
600+
"""Unique name"""
601+
label: String!
599602
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
600603
601604
"""Marks an element of a GraphQL schema as no longer supported."""
@@ -813,8 +816,11 @@ describe('Type System Printer', () => {
813816
814817
# Directs the executor to defer this fragment when the \`if\` argument is true or undefined.
815818
directive @defer(
816-
# Defer fragment when true or undefined.
819+
# Deferred when true or undefined.
817820
if: Boolean
821+
822+
# Unique name
823+
label: String!
818824
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
819825
820826
# Marks an element of a GraphQL schema as no longer supported.

0 commit comments

Comments
 (0)