Skip to content

Commit 64a9162

Browse files
committed
Add missing test
1 parent 34d0991 commit 64a9162

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/utilities/__tests__/printSchema-test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,21 @@ describe('Type System Printer', () => {
276276
`);
277277
});
278278

279+
it('Prints schema with NO_PROPAGATE error behavior', () => {
280+
const schema = new GraphQLSchema({
281+
defaultErrorBehavior: 'NO_PROPAGATE',
282+
query: new GraphQLObjectType({ name: 'Query', fields: {} }),
283+
});
284+
285+
expectPrintedSchema(schema).to.equal(dedent`
286+
schema @behavior(onError: NO_PROPAGATE) {
287+
query: Query
288+
}
289+
290+
type Query
291+
`);
292+
});
293+
279294
it('Omits schema of common names', () => {
280295
const schema = new GraphQLSchema({
281296
query: new GraphQLObjectType({ name: 'Query', fields: {} }),

0 commit comments

Comments
 (0)