Skip to content

Commit cf4629d

Browse files
committed
try to fix coverage
1 parent 30aae6c commit cf4629d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/language/__tests__/printer-test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,16 @@ describe('Printer: Query document', () => {
122122
`);
123123
});
124124

125+
it('Experimental: prints directives on directives', () => {
126+
const queryASTWithVariableDirective = parse(
127+
'directive @foo @bar on FIELD_DEFINITION',
128+
{ experimentalDirectivesOnDirectiveDefinitions: true },
129+
);
130+
expect(print(queryASTWithVariableDirective)).to.equal(dedent`
131+
directive @foo @bar on FIELD_DEFINITION
132+
`);
133+
});
134+
125135
it('Legacy: correctly prints fragment defined variables', () => {
126136
const fragmentWithVariable = parse(
127137
`

0 commit comments

Comments
 (0)