File tree Expand file tree Collapse file tree 1 file changed +0
-45
lines changed
Expand file tree Collapse file tree 1 file changed +0
-45
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments