@@ -553,10 +553,12 @@ describe('test harness', () => {
553
553
} ) ,
554
554
) ;
555
555
556
- const response = await request ( app ) . post ( urlString ( ) ) . send ( {
557
- query : 'query helloWho($who: String){ test(who: $who) }' ,
558
- variables : JSON . stringify ( { who : 'Dolly' } ) ,
559
- } ) ;
556
+ const response = await request ( app )
557
+ . post ( urlString ( ) )
558
+ . send ( {
559
+ query : 'query helloWho($who: String){ test(who: $who) }' ,
560
+ variables : JSON . stringify ( { who : 'Dolly' } ) ,
561
+ } ) ;
560
562
561
563
expect ( response . text ) . to . equal ( '{"data":{"test":"Hello Dolly"}}' ) ;
562
564
} ) ;
@@ -572,10 +574,12 @@ describe('test harness', () => {
572
574
} ) ,
573
575
) ;
574
576
575
- const response = await request ( app ) . post ( urlString ( ) ) . send ( {
576
- query : 'query helloWho($who: String){ test(who: $who) }' ,
577
- variables : { who : 'Dolly' } ,
578
- } ) ;
577
+ const response = await request ( app )
578
+ . post ( urlString ( ) )
579
+ . send ( {
580
+ query : 'query helloWho($who: String){ test(who: $who) }' ,
581
+ variables : { who : 'Dolly' } ,
582
+ } ) ;
579
583
580
584
expect ( response . text ) . to . equal ( '{"data":{"test":"Hello Dolly"}}' ) ;
581
585
} ) ;
@@ -591,12 +595,14 @@ describe('test harness', () => {
591
595
} ) ,
592
596
) ;
593
597
594
- const response = await request ( app ) . post ( urlString ( ) ) . send (
595
- stringify ( {
596
- query : 'query helloWho($who: String){ test(who: $who) }' ,
597
- variables : JSON . stringify ( { who : 'Dolly' } ) ,
598
- } ) ,
599
- ) ;
598
+ const response = await request ( app )
599
+ . post ( urlString ( ) )
600
+ . send (
601
+ stringify ( {
602
+ query : 'query helloWho($who: String){ test(who: $who) }' ,
603
+ variables : JSON . stringify ( { who : 'Dolly' } ) ,
604
+ } ) ,
605
+ ) ;
600
606
601
607
expect ( response . text ) . to . equal ( '{"data":{"test":"Hello Dolly"}}' ) ;
602
608
} ) ;
@@ -683,17 +689,19 @@ describe('test harness', () => {
683
689
} ) ) ,
684
690
) ;
685
691
686
- const response = await request ( app ) . post ( urlString ( ) ) . send ( {
687
- query : `
692
+ const response = await request ( app )
693
+ . post ( urlString ( ) )
694
+ . send ( {
695
+ query : `
688
696
query helloYou { test(who: "You"), ...shared }
689
697
query helloWorld { test(who: "World"), ...shared }
690
698
query helloDolly { test(who: "Dolly"), ...shared }
691
699
fragment shared on QueryRoot {
692
700
shared: test(who: "Everyone")
693
701
}
694
702
` ,
695
- operationName : 'helloWorld' ,
696
- } ) ;
703
+ operationName : 'helloWorld' ,
704
+ } ) ;
697
705
698
706
expect ( JSON . parse ( response . text ) ) . to . deep . equal ( {
699
707
data : {
0 commit comments