@@ -114,9 +114,7 @@ describe('Type System: Scalars', () => {
114
114
} ) ,
115
115
) ,
116
116
) . to . throw (
117
- 'SomeScalar must provide "serialize" function. If this custom Scalar ' +
118
- 'is also used as an input type, ensure "parseValue" and "parseLiteral" ' +
119
- 'functions are also provided.' ,
117
+ 'SomeScalar must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.' ,
120
118
) ;
121
119
} ) ;
122
120
@@ -130,9 +128,7 @@ describe('Type System: Scalars', () => {
130
128
} ) ,
131
129
) ,
132
130
) . to . throw (
133
- 'SomeScalar must provide "serialize" function. If this custom Scalar ' +
134
- 'is also used as an input type, ensure "parseValue" and "parseLiteral" ' +
135
- 'functions are also provided.' ,
131
+ 'SomeScalar must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.' ,
136
132
) ;
137
133
} ) ;
138
134
@@ -330,8 +326,7 @@ describe('Type System: Objects', () => {
330
326
fields : [ { field : GraphQLString } ] ,
331
327
} ) ;
332
328
expect ( ( ) => objType . getFields ( ) ) . to . throw (
333
- 'SomeObject fields must be an object with field names as keys or a ' +
334
- 'function which returns such an object.' ,
329
+ 'SomeObject fields must be an object with field names as keys or a function which returns such an object.' ,
335
330
) ;
336
331
} ) ;
337
332
@@ -344,8 +339,7 @@ describe('Type System: Objects', () => {
344
339
} ,
345
340
} ) ;
346
341
expect ( ( ) => objType . getFields ( ) ) . to . throw (
347
- 'SomeObject fields must be an object with field names as keys or a ' +
348
- 'function which returns such an object.' ,
342
+ 'SomeObject fields must be an object with field names as keys or a function which returns such an object.' ,
349
343
) ;
350
344
} ) ;
351
345
@@ -377,8 +371,7 @@ describe('Type System: Objects', () => {
377
371
378
372
return schemaWithFieldType ( OldObject ) ;
379
373
} ) . to . throw (
380
- 'OldObject.field should provide "deprecationReason" instead ' +
381
- 'of "isDeprecated".' ,
374
+ 'OldObject.field should provide "deprecationReason" instead of "isDeprecated".' ,
382
375
) ;
383
376
} ) ;
384
377
@@ -411,16 +404,14 @@ describe('Type System: Objects', () => {
411
404
it ( 'rejects an empty Object field resolver' , ( ) => {
412
405
// $DisableFlowOnNegativeTest
413
406
expect ( ( ) => schemaWithObjectWithFieldResolver ( { } ) ) . to . throw (
414
- 'BadResolver.badField field resolver must be a function if provided, ' +
415
- 'but got: {}.' ,
407
+ 'BadResolver.badField field resolver must be a function if provided, but got: {}.' ,
416
408
) ;
417
409
} ) ;
418
410
419
411
it ( 'rejects a constant scalar value resolver' , ( ) => {
420
412
// $DisableFlowOnNegativeTest
421
413
expect ( ( ) => schemaWithObjectWithFieldResolver ( 0 ) ) . to . throw (
422
- 'BadResolver.badField field resolver must be a function if provided, ' +
423
- 'but got: 0.' ,
414
+ 'BadResolver.badField field resolver must be a function if provided, but got: 0.' ,
424
415
) ;
425
416
} ) ;
426
417
@@ -553,8 +544,7 @@ describe('Type System: Unions', () => {
553
544
} ) ,
554
545
) ,
555
546
) . to . throw (
556
- 'Must provide Array of types or a function which returns such an array ' +
557
- 'for Union SomeUnion.' ,
547
+ 'Must provide Array of types or a function which returns such an array for Union SomeUnion.' ,
558
548
) ;
559
549
} ) ;
560
550
} ) ;
@@ -647,8 +637,7 @@ describe('Type System: Enums', () => {
647
637
values : { FOO : null } ,
648
638
} ;
649
639
expect ( ( ) => new GraphQLEnumType ( config ) ) . to . throw (
650
- 'SomeEnum.FOO must refer to an object with a "value" key representing ' +
651
- 'an internal value but got: null.' ,
640
+ 'SomeEnum.FOO must refer to an object with a "value" key representing an internal value but got: null.' ,
652
641
) ;
653
642
} ) ;
654
643
@@ -659,8 +648,7 @@ describe('Type System: Enums', () => {
659
648
values : { FOO : 10 } ,
660
649
} ;
661
650
expect ( ( ) => new GraphQLEnumType ( config ) ) . to . throw (
662
- 'SomeEnum.FOO must refer to an object with a "value" key representing ' +
663
- 'an internal value but got: 10.' ,
651
+ 'SomeEnum.FOO must refer to an object with a "value" key representing an internal value but got: 10.' ,
664
652
) ;
665
653
} ) ;
666
654
@@ -673,8 +661,7 @@ describe('Type System: Enums', () => {
673
661
} ,
674
662
} ;
675
663
expect ( ( ) => new GraphQLEnumType ( config ) ) . to . throw (
676
- 'SomeEnum.FOO should provide "deprecationReason" instead ' +
677
- 'of "isDeprecated".' ,
664
+ 'SomeEnum.FOO should provide "deprecationReason" instead of "isDeprecated".' ,
678
665
) ;
679
666
} ) ;
680
667
} ) ;
@@ -710,8 +697,7 @@ describe('Type System: Input Objects', () => {
710
697
fields : [ ] ,
711
698
} ) ;
712
699
expect ( ( ) => inputObjType . getFields ( ) ) . to . throw (
713
- 'SomeInputObject fields must be an object with field names as keys or a ' +
714
- 'function which returns such an object.' ,
700
+ 'SomeInputObject fields must be an object with field names as keys or a function which returns such an object.' ,
715
701
) ;
716
702
} ) ;
717
703
@@ -722,8 +708,7 @@ describe('Type System: Input Objects', () => {
722
708
fields : ( ) => [ ] ,
723
709
} ) ;
724
710
expect ( ( ) => inputObjType . getFields ( ) ) . to . throw (
725
- 'SomeInputObject fields must be an object with field names as keys or a ' +
726
- 'function which returns such an object.' ,
711
+ 'SomeInputObject fields must be an object with field names as keys or a function which returns such an object.' ,
727
712
) ;
728
713
} ) ;
729
714
} ) ;
@@ -738,8 +723,7 @@ describe('Type System: Input Objects', () => {
738
723
} ,
739
724
} ) ;
740
725
expect ( ( ) => inputObjType . getFields ( ) ) . to . throw (
741
- 'SomeInputObject.f field has a resolve property, ' +
742
- 'but Input Types cannot define resolvers.' ,
726
+ 'SomeInputObject.f field has a resolve property, but Input Types cannot define resolvers.' ,
743
727
) ;
744
728
} ) ;
745
729
@@ -752,8 +736,7 @@ describe('Type System: Input Objects', () => {
752
736
} ,
753
737
} ) ;
754
738
expect ( ( ) => inputObjType . getFields ( ) ) . to . throw (
755
- 'SomeInputObject.f field has a resolve property, ' +
756
- 'but Input Types cannot define resolvers.' ,
739
+ 'SomeInputObject.f field has a resolve property, but Input Types cannot define resolvers.' ,
757
740
) ;
758
741
} ) ;
759
742
} ) ;
0 commit comments