File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -552,16 +552,12 @@ describe('Type System Printer', () => {
552
552
description,
553
553
} ) ;
554
554
expect ( output ) . to . equal ( dedent `
555
- schema {
556
- query: Root
557
- }
558
-
559
- type Root {
555
+ type Query {
560
556
"""This field is awesome"""
561
557
singleField: String
562
558
}
563
559
` ) ;
564
- const recreatedRoot = buildSchema ( output ) . getTypeMap ( ) [ 'Root ' ] ;
560
+ const recreatedRoot = buildSchema ( output ) . getTypeMap ( ) [ 'Query ' ] ;
565
561
const recreatedField = recreatedRoot . getFields ( ) [ 'singleField' ] ;
566
562
expect ( recreatedField . description ) . to . equal ( description ) ;
567
563
} ) ;
@@ -573,18 +569,14 @@ describe('Type System Printer', () => {
573
569
description,
574
570
} ) ;
575
571
expect ( output ) . to . equal ( dedent `
576
- schema {
577
- query: Root
578
- }
579
-
580
- type Root {
572
+ type Query {
581
573
"""
582
574
This field is "awesome"
583
575
"""
584
576
singleField: String
585
577
}
586
578
` ) ;
587
- const recreatedRoot = buildSchema ( output ) . getTypeMap ( ) [ 'Root ' ] ;
579
+ const recreatedRoot = buildSchema ( output ) . getTypeMap ( ) [ 'Query ' ] ;
588
580
const recreatedField = recreatedRoot . getFields ( ) [ 'singleField' ] ;
589
581
expect ( recreatedField . description ) . to . equal ( description ) ;
590
582
} ) ;
@@ -596,17 +588,13 @@ describe('Type System Printer', () => {
596
588
description,
597
589
} ) ;
598
590
expect ( output ) . to . equal ( dedent `
599
- schema {
600
- query: Root
601
- }
602
-
603
- type Root {
591
+ type Query {
604
592
""" This field is "awesome"
605
593
"""
606
594
singleField: String
607
595
}
608
596
` ) ;
609
- const recreatedRoot = buildSchema ( output ) . getTypeMap ( ) [ 'Root ' ] ;
597
+ const recreatedRoot = buildSchema ( output ) . getTypeMap ( ) [ 'Query ' ] ;
610
598
const recreatedField = recreatedRoot . getFields ( ) [ 'singleField' ] ;
611
599
expect ( recreatedField . description ) . to . equal ( description ) ;
612
600
} ) ;
You can’t perform that action at this time.
0 commit comments