Skip to content

Commit b73bcd7

Browse files
update schema tests
1 parent 82be5c7 commit b73bcd7

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
@@ -878,6 +878,19 @@ describe('Introspection', () => {
878878
ofType: null,
879879
},
880880
},
881+
{
882+
defaultValue: null,
883+
name: 'label',
884+
type: {
885+
kind: 'NON_NULL',
886+
name: null,
887+
ofType: {
888+
kind: 'SCALAR',
889+
name: 'String',
890+
ofType: null,
891+
},
892+
},
893+
},
881894
],
882895
},
883896
{

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."""
@@ -931,8 +934,11 @@ describe('Type System Printer', () => {
931934
}
932935
# Directs the executor to defer this fragment when the \`if\` argument is true or undefined.
933936
directive @defer(
934-
# Defer fragment when true or undefined.
937+
# Deferred when true or undefined.
935938
if: Boolean
939+
940+
# Unique name
941+
label: String!
936942
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
937943
938944
# Marks an element of a GraphQL schema as no longer supported.

0 commit comments

Comments
 (0)