Skip to content

Commit 9d61339

Browse files
committed
fix test coverage
1 parent 8011f6e commit 9d61339

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/utilities/__tests__/extendSchema-test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,5 +1336,13 @@ describe('extendSchema', () => {
13361336
deprecationReason: 'use another directive',
13371337
});
13381338
});
1339+
1340+
it('extend directive without adding new directives is an error', () => {
1341+
expect(() =>
1342+
parse('extend directive @isDeprecated', {
1343+
experimentalDirectivesOnDirectiveDefinitions: true,
1344+
}),
1345+
).to.throw('Syntax Error: Unexpected <EOF>.');
1346+
});
13391347
});
13401348
});

0 commit comments

Comments
 (0)