Skip to content

Commit e652b06

Browse files
update schema tests
1 parent 7f71807 commit e652b06

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
@@ -860,6 +860,19 @@ describe('Introspection', () => {
860860
ofType: null,
861861
},
862862
},
863+
{
864+
defaultValue: null,
865+
name: 'label',
866+
type: {
867+
kind: 'NON_NULL',
868+
name: null,
869+
ofType: {
870+
kind: 'SCALAR',
871+
name: 'String',
872+
ofType: null,
873+
},
874+
},
875+
},
863876
],
864877
},
865878
{

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)