@@ -79,6 +79,7 @@ describe('Schema Parser', () => {
79
79
80
80
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
81
81
kind : 'Document' ,
82
+ comments : [ ] ,
82
83
definitions : [
83
84
{
84
85
kind : 'ObjectTypeDefinition' ,
@@ -176,6 +177,7 @@ describe('Schema Parser', () => {
176
177
177
178
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
178
179
kind : 'Document' ,
180
+ comments : [ ] ,
179
181
definitions : [
180
182
{
181
183
kind : 'ObjectTypeExtension' ,
@@ -201,6 +203,7 @@ describe('Schema Parser', () => {
201
203
202
204
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
203
205
kind : 'Document' ,
206
+ comments : [ ] ,
204
207
definitions : [
205
208
{
206
209
kind : 'ObjectTypeExtension' ,
@@ -219,6 +222,7 @@ describe('Schema Parser', () => {
219
222
const doc = parse ( 'extend interface Hello implements Greeting' ) ;
220
223
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
221
224
kind : 'Document' ,
225
+ comments : [ ] ,
222
226
definitions : [
223
227
{
224
228
kind : 'InterfaceTypeExtension' ,
@@ -242,6 +246,7 @@ describe('Schema Parser', () => {
242
246
243
247
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
244
248
kind : 'Document' ,
249
+ comments : [ ] ,
245
250
definitions : [
246
251
{
247
252
kind : 'ObjectTypeExtension' ,
@@ -304,6 +309,7 @@ describe('Schema Parser', () => {
304
309
` ) ;
305
310
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
306
311
kind : 'Document' ,
312
+ comments : [ ] ,
307
313
definitions : [
308
314
{
309
315
kind : 'InterfaceTypeExtension' ,
@@ -376,6 +382,7 @@ describe('Schema Parser', () => {
376
382
const doc = parse ( body ) ;
377
383
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
378
384
kind : 'Document' ,
385
+ comments : [ ] ,
379
386
definitions : [
380
387
{
381
388
kind : 'SchemaExtension' ,
@@ -400,6 +407,7 @@ describe('Schema Parser', () => {
400
407
const doc = parse ( body ) ;
401
408
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
402
409
kind : 'Document' ,
410
+ comments : [ ] ,
403
411
definitions : [
404
412
{
405
413
kind : 'SchemaExtension' ,
@@ -442,6 +450,7 @@ describe('Schema Parser', () => {
442
450
443
451
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
444
452
kind : 'Document' ,
453
+ comments : [ ] ,
445
454
definitions : [
446
455
{
447
456
kind : 'ObjectTypeDefinition' ,
@@ -471,6 +480,7 @@ describe('Schema Parser', () => {
471
480
const doc = parse ( 'interface Hello implements World { field: String }' ) ;
472
481
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
473
482
kind : 'Document' ,
483
+ comments : [ ] ,
474
484
definitions : [
475
485
{
476
486
kind : 'InterfaceTypeDefinition' ,
@@ -497,6 +507,7 @@ describe('Schema Parser', () => {
497
507
498
508
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
499
509
kind : 'Document' ,
510
+ comments : [ ] ,
500
511
definitions : [
501
512
{
502
513
kind : 'ObjectTypeDefinition' ,
@@ -523,6 +534,7 @@ describe('Schema Parser', () => {
523
534
524
535
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
525
536
kind : 'Document' ,
537
+ comments : [ ] ,
526
538
definitions : [
527
539
{
528
540
kind : 'ObjectTypeDefinition' ,
@@ -551,6 +563,7 @@ describe('Schema Parser', () => {
551
563
const doc = parse ( 'interface Hello implements Wo & rld { field: String }' ) ;
552
564
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
553
565
kind : 'Document' ,
566
+ comments : [ ] ,
554
567
definitions : [
555
568
{
556
569
kind : 'InterfaceTypeDefinition' ,
@@ -580,6 +593,7 @@ describe('Schema Parser', () => {
580
593
581
594
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
582
595
kind : 'Document' ,
596
+ comments : [ ] ,
583
597
definitions : [
584
598
{
585
599
kind : 'ObjectTypeDefinition' ,
@@ -610,6 +624,7 @@ describe('Schema Parser', () => {
610
624
) ;
611
625
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
612
626
kind : 'Document' ,
627
+ comments : [ ] ,
613
628
definitions : [
614
629
{
615
630
kind : 'InterfaceTypeDefinition' ,
@@ -639,6 +654,7 @@ describe('Schema Parser', () => {
639
654
640
655
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
641
656
kind : 'Document' ,
657
+ comments : [ ] ,
642
658
definitions : [
643
659
{
644
660
kind : 'EnumTypeDefinition' ,
@@ -658,6 +674,7 @@ describe('Schema Parser', () => {
658
674
659
675
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
660
676
kind : 'Document' ,
677
+ comments : [ ] ,
661
678
definitions : [
662
679
{
663
680
kind : 'EnumTypeDefinition' ,
@@ -684,6 +701,7 @@ describe('Schema Parser', () => {
684
701
685
702
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
686
703
kind : 'Document' ,
704
+ comments : [ ] ,
687
705
definitions : [
688
706
{
689
707
kind : 'InterfaceTypeDefinition' ,
@@ -714,6 +732,7 @@ describe('Schema Parser', () => {
714
732
715
733
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
716
734
kind : 'Document' ,
735
+ comments : [ ] ,
717
736
definitions : [
718
737
{
719
738
kind : 'ObjectTypeDefinition' ,
@@ -752,6 +771,7 @@ describe('Schema Parser', () => {
752
771
753
772
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
754
773
kind : 'Document' ,
774
+ comments : [ ] ,
755
775
definitions : [
756
776
{
757
777
kind : 'ObjectTypeDefinition' ,
@@ -794,6 +814,7 @@ describe('Schema Parser', () => {
794
814
795
815
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
796
816
kind : 'Document' ,
817
+ comments : [ ] ,
797
818
definitions : [
798
819
{
799
820
kind : 'ObjectTypeDefinition' ,
@@ -836,6 +857,7 @@ describe('Schema Parser', () => {
836
857
837
858
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
838
859
kind : 'Document' ,
860
+ comments : [ ] ,
839
861
definitions : [
840
862
{
841
863
kind : 'ObjectTypeDefinition' ,
@@ -876,6 +898,7 @@ describe('Schema Parser', () => {
876
898
877
899
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
878
900
kind : 'Document' ,
901
+ comments : [ ] ,
879
902
definitions : [
880
903
{
881
904
kind : 'UnionTypeDefinition' ,
@@ -895,6 +918,7 @@ describe('Schema Parser', () => {
895
918
896
919
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
897
920
kind : 'Document' ,
921
+ comments : [ ] ,
898
922
definitions : [
899
923
{
900
924
kind : 'UnionTypeDefinition' ,
@@ -917,6 +941,7 @@ describe('Schema Parser', () => {
917
941
918
942
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
919
943
kind : 'Document' ,
944
+ comments : [ ] ,
920
945
definitions : [
921
946
{
922
947
kind : 'UnionTypeDefinition' ,
@@ -967,6 +992,7 @@ describe('Schema Parser', () => {
967
992
968
993
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
969
994
kind : 'Document' ,
995
+ comments : [ ] ,
970
996
definitions : [
971
997
{
972
998
kind : 'ScalarTypeDefinition' ,
@@ -988,6 +1014,7 @@ input Hello {
988
1014
989
1015
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
990
1016
kind : 'Document' ,
1017
+ comments : [ ] ,
991
1018
definitions : [
992
1019
{
993
1020
kind : 'InputObjectTypeDefinition' ,
@@ -1026,6 +1053,7 @@ input Hello {
1026
1053
1027
1054
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
1028
1055
kind : 'Document' ,
1056
+ comments : [ ] ,
1029
1057
definitions : [
1030
1058
{
1031
1059
kind : 'DirectiveDefinition' ,
@@ -1062,6 +1090,7 @@ input Hello {
1062
1090
1063
1091
expect ( toJSONDeep ( doc ) ) . to . deep . equal ( {
1064
1092
kind : 'Document' ,
1093
+ comments : [ ] ,
1065
1094
definitions : [
1066
1095
{
1067
1096
kind : 'DirectiveDefinition' ,
0 commit comments