Skip to content

Commit 07e627a

Browse files
committed
remove non spec compliant test
1 parent cf5b234 commit 07e627a

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

src/execution/__tests__/directives-test.js

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -268,51 +268,6 @@ describe('Execute: handles directives', () => {
268268
});
269269
});
270270

271-
describe('works on fragment', () => {
272-
it('if false omits fragment', async () => {
273-
const q = `
274-
query Q {
275-
a
276-
...Frag
277-
}
278-
fragment Frag on TestType @include(if: false) {
279-
b
280-
}
281-
`;
282-
return expect(await executeTestQuery(q)).to.deep.equal({
283-
data: { a: 'a' }
284-
});
285-
});
286-
it('if true includes fragment', async () => {
287-
const q = `
288-
query Q {
289-
a
290-
...Frag
291-
}
292-
fragment Frag on TestType @include(if: true) {
293-
b
294-
}
295-
`;
296-
return expect(await executeTestQuery(q)).to.deep.equal({
297-
data: { a: 'a', b: 'b' }
298-
});
299-
});
300-
it('unless false includes fragment', async () => {
301-
const q = `
302-
query Q {
303-
a
304-
...Frag
305-
}
306-
fragment Frag on TestType @skip(if: false) {
307-
b
308-
}
309-
`;
310-
return expect(await executeTestQuery(q)).to.deep.equal({
311-
data: { a: 'a', b: 'b' }
312-
});
313-
});
314-
});
315-
316271
describe('works with skip and include directives', () => {
317272
it('include and no skip', async () => {
318273
return expect(

0 commit comments

Comments
 (0)