@@ -90,14 +90,14 @@ describe('Type predicates', () => {
90
90
describe ( 'isType' , ( ) => {
91
91
it ( 'returns true for unwrapped types' , ( ) => {
92
92
expect ( isType ( GraphQLString ) ) . to . equal ( true ) ;
93
- expect ( ( ) => assertType ( GraphQLString ) ) . not . to . throw ( ) ;
93
+ expect ( ( ) => assertType ( GraphQLString ) ) . to . not . throw ( ) ;
94
94
expect ( isType ( ObjectType ) ) . to . equal ( true ) ;
95
- expect ( ( ) => assertType ( ObjectType ) ) . not . to . throw ( ) ;
95
+ expect ( ( ) => assertType ( ObjectType ) ) . to . not . throw ( ) ;
96
96
} ) ;
97
97
98
98
it ( 'returns true for wrapped types' , ( ) => {
99
99
expect ( isType ( GraphQLNonNull ( GraphQLString ) ) ) . to . equal ( true ) ;
100
- expect ( ( ) => assertType ( GraphQLNonNull ( GraphQLString ) ) ) . not . to . throw ( ) ;
100
+ expect ( ( ) => assertType ( GraphQLNonNull ( GraphQLString ) ) ) . to . not . throw ( ) ;
101
101
} ) ;
102
102
103
103
it ( 'returns false for type classes (rather than instances)' , ( ) => {
@@ -114,12 +114,12 @@ describe('Type predicates', () => {
114
114
describe ( 'isScalarType' , ( ) => {
115
115
it ( 'returns true for spec defined scalar' , ( ) => {
116
116
expect ( isScalarType ( GraphQLString ) ) . to . equal ( true ) ;
117
- expect ( ( ) => assertScalarType ( GraphQLString ) ) . not . to . throw ( ) ;
117
+ expect ( ( ) => assertScalarType ( GraphQLString ) ) . to . not . throw ( ) ;
118
118
} ) ;
119
119
120
120
it ( 'returns true for custom scalar' , ( ) => {
121
121
expect ( isScalarType ( ScalarType ) ) . to . equal ( true ) ;
122
- expect ( ( ) => assertScalarType ( ScalarType ) ) . not . to . throw ( ) ;
122
+ expect ( ( ) => assertScalarType ( ScalarType ) ) . to . not . throw ( ) ;
123
123
} ) ;
124
124
125
125
it ( 'returns false for scalar class (rather than instance)' , ( ) => {
@@ -162,7 +162,7 @@ describe('Type predicates', () => {
162
162
describe ( 'isObjectType' , ( ) => {
163
163
it ( 'returns true for object type' , ( ) => {
164
164
expect ( isObjectType ( ObjectType ) ) . to . equal ( true ) ;
165
- expect ( ( ) => assertObjectType ( ObjectType ) ) . not . to . throw ( ) ;
165
+ expect ( ( ) => assertObjectType ( ObjectType ) ) . to . not . throw ( ) ;
166
166
} ) ;
167
167
168
168
it ( 'returns false for wrapped object type' , ( ) => {
@@ -179,7 +179,7 @@ describe('Type predicates', () => {
179
179
describe ( 'isInterfaceType' , ( ) => {
180
180
it ( 'returns true for interface type' , ( ) => {
181
181
expect ( isInterfaceType ( InterfaceType ) ) . to . equal ( true ) ;
182
- expect ( ( ) => assertInterfaceType ( InterfaceType ) ) . not . to . throw ( ) ;
182
+ expect ( ( ) => assertInterfaceType ( InterfaceType ) ) . to . not . throw ( ) ;
183
183
} ) ;
184
184
185
185
it ( 'returns false for wrapped interface type' , ( ) => {
@@ -196,7 +196,7 @@ describe('Type predicates', () => {
196
196
describe ( 'isUnionType' , ( ) => {
197
197
it ( 'returns true for union type' , ( ) => {
198
198
expect ( isUnionType ( UnionType ) ) . to . equal ( true ) ;
199
- expect ( ( ) => assertUnionType ( UnionType ) ) . not . to . throw ( ) ;
199
+ expect ( ( ) => assertUnionType ( UnionType ) ) . to . not . throw ( ) ;
200
200
} ) ;
201
201
202
202
it ( 'returns false for wrapped union type' , ( ) => {
@@ -213,7 +213,7 @@ describe('Type predicates', () => {
213
213
describe ( 'isEnumType' , ( ) => {
214
214
it ( 'returns true for enum type' , ( ) => {
215
215
expect ( isEnumType ( EnumType ) ) . to . equal ( true ) ;
216
- expect ( ( ) => assertEnumType ( EnumType ) ) . not . to . throw ( ) ;
216
+ expect ( ( ) => assertEnumType ( EnumType ) ) . to . not . throw ( ) ;
217
217
} ) ;
218
218
219
219
it ( 'returns false for wrapped enum type' , ( ) => {
@@ -230,7 +230,7 @@ describe('Type predicates', () => {
230
230
describe ( 'isInputObjectType' , ( ) => {
231
231
it ( 'returns true for input object type' , ( ) => {
232
232
expect ( isInputObjectType ( InputObjectType ) ) . to . equal ( true ) ;
233
- expect ( ( ) => assertInputObjectType ( InputObjectType ) ) . not . to . throw ( ) ;
233
+ expect ( ( ) => assertInputObjectType ( InputObjectType ) ) . to . not . throw ( ) ;
234
234
} ) ;
235
235
236
236
it ( 'returns false for wrapped input object type' , ( ) => {
@@ -249,7 +249,7 @@ describe('Type predicates', () => {
249
249
describe ( 'isListType' , ( ) => {
250
250
it ( 'returns true for a list wrapped type' , ( ) => {
251
251
expect ( isListType ( GraphQLList ( ObjectType ) ) ) . to . equal ( true ) ;
252
- expect ( ( ) => assertListType ( GraphQLList ( ObjectType ) ) ) . not . to . throw ( ) ;
252
+ expect ( ( ) => assertListType ( GraphQLList ( ObjectType ) ) ) . to . not . throw ( ) ;
253
253
} ) ;
254
254
255
255
it ( 'returns false for an unwrapped type' , ( ) => {
@@ -272,7 +272,7 @@ describe('Type predicates', () => {
272
272
expect ( isNonNullType ( GraphQLNonNull ( ObjectType ) ) ) . to . equal ( true ) ;
273
273
expect ( ( ) =>
274
274
assertNonNullType ( GraphQLNonNull ( ObjectType ) ) ,
275
- ) . not . to . throw ( ) ;
275
+ ) . to . not . throw ( ) ;
276
276
} ) ;
277
277
278
278
it ( 'returns false for an unwrapped type' , ( ) => {
@@ -293,7 +293,7 @@ describe('Type predicates', () => {
293
293
describe ( 'isInputType' , ( ) => {
294
294
function expectInputType ( type ) {
295
295
expect ( isInputType ( type ) ) . to . equal ( true ) ;
296
- expect ( ( ) => assertInputType ( type ) ) . not . to . throw ( ) ;
296
+ expect ( ( ) => assertInputType ( type ) ) . to . not . throw ( ) ;
297
297
}
298
298
299
299
it ( 'returns true for an input type' , ( ) => {
@@ -337,7 +337,7 @@ describe('Type predicates', () => {
337
337
describe ( 'isOutputType' , ( ) => {
338
338
function expectOutputType ( type ) {
339
339
expect ( isOutputType ( type ) ) . to . equal ( true ) ;
340
- expect ( ( ) => assertOutputType ( type ) ) . not . to . throw ( ) ;
340
+ expect ( ( ) => assertOutputType ( type ) ) . to . not . throw ( ) ;
341
341
}
342
342
343
343
it ( 'returns true for an output type' , ( ) => {
@@ -380,9 +380,9 @@ describe('Type predicates', () => {
380
380
describe ( 'isLeafType' , ( ) => {
381
381
it ( 'returns true for scalar and enum types' , ( ) => {
382
382
expect ( isLeafType ( ScalarType ) ) . to . equal ( true ) ;
383
- expect ( ( ) => assertLeafType ( ScalarType ) ) . not . to . throw ( ) ;
383
+ expect ( ( ) => assertLeafType ( ScalarType ) ) . to . not . throw ( ) ;
384
384
expect ( isLeafType ( EnumType ) ) . to . equal ( true ) ;
385
- expect ( ( ) => assertLeafType ( EnumType ) ) . not . to . throw ( ) ;
385
+ expect ( ( ) => assertLeafType ( EnumType ) ) . to . not . throw ( ) ;
386
386
} ) ;
387
387
388
388
it ( 'returns false for wrapped leaf type' , ( ) => {
@@ -404,11 +404,11 @@ describe('Type predicates', () => {
404
404
describe ( 'isCompositeType' , ( ) => {
405
405
it ( 'returns true for object, interface, and union types' , ( ) => {
406
406
expect ( isCompositeType ( ObjectType ) ) . to . equal ( true ) ;
407
- expect ( ( ) => assertCompositeType ( ObjectType ) ) . not . to . throw ( ) ;
407
+ expect ( ( ) => assertCompositeType ( ObjectType ) ) . to . not . throw ( ) ;
408
408
expect ( isCompositeType ( InterfaceType ) ) . to . equal ( true ) ;
409
- expect ( ( ) => assertCompositeType ( InterfaceType ) ) . not . to . throw ( ) ;
409
+ expect ( ( ) => assertCompositeType ( InterfaceType ) ) . to . not . throw ( ) ;
410
410
expect ( isCompositeType ( UnionType ) ) . to . equal ( true ) ;
411
- expect ( ( ) => assertCompositeType ( UnionType ) ) . not . to . throw ( ) ;
411
+ expect ( ( ) => assertCompositeType ( UnionType ) ) . to . not . throw ( ) ;
412
412
} ) ;
413
413
414
414
it ( 'returns false for wrapped composite type' , ( ) => {
@@ -432,9 +432,9 @@ describe('Type predicates', () => {
432
432
describe ( 'isAbstractType' , ( ) => {
433
433
it ( 'returns true for interface and union types' , ( ) => {
434
434
expect ( isAbstractType ( InterfaceType ) ) . to . equal ( true ) ;
435
- expect ( ( ) => assertAbstractType ( InterfaceType ) ) . not . to . throw ( ) ;
435
+ expect ( ( ) => assertAbstractType ( InterfaceType ) ) . to . not . throw ( ) ;
436
436
expect ( isAbstractType ( UnionType ) ) . to . equal ( true ) ;
437
- expect ( ( ) => assertAbstractType ( UnionType ) ) . not . to . throw ( ) ;
437
+ expect ( ( ) => assertAbstractType ( UnionType ) ) . to . not . throw ( ) ;
438
438
} ) ;
439
439
440
440
it ( 'returns false for wrapped abstract type' , ( ) => {
@@ -456,11 +456,11 @@ describe('Type predicates', () => {
456
456
describe ( 'isWrappingType' , ( ) => {
457
457
it ( 'returns true for list and non-null types' , ( ) => {
458
458
expect ( isWrappingType ( GraphQLList ( ObjectType ) ) ) . to . equal ( true ) ;
459
- expect ( ( ) => assertWrappingType ( GraphQLList ( ObjectType ) ) ) . not . to . throw ( ) ;
459
+ expect ( ( ) => assertWrappingType ( GraphQLList ( ObjectType ) ) ) . to . not . throw ( ) ;
460
460
expect ( isWrappingType ( GraphQLNonNull ( ObjectType ) ) ) . to . equal ( true ) ;
461
461
expect ( ( ) =>
462
462
assertWrappingType ( GraphQLNonNull ( ObjectType ) ) ,
463
- ) . not . to . throw ( ) ;
463
+ ) . to . not . throw ( ) ;
464
464
} ) ;
465
465
466
466
it ( 'returns false for unwrapped types' , ( ) => {
@@ -472,7 +472,7 @@ describe('Type predicates', () => {
472
472
describe ( 'isNullableType' , ( ) => {
473
473
it ( 'returns true for unwrapped types' , ( ) => {
474
474
expect ( isNullableType ( ObjectType ) ) . to . equal ( true ) ;
475
- expect ( ( ) => assertNullableType ( ObjectType ) ) . not . to . throw ( ) ;
475
+ expect ( ( ) => assertNullableType ( ObjectType ) ) . to . not . throw ( ) ;
476
476
} ) ;
477
477
478
478
it ( 'returns true for list of non-null types' , ( ) => {
@@ -481,7 +481,7 @@ describe('Type predicates', () => {
481
481
) ;
482
482
expect ( ( ) =>
483
483
assertNullableType ( GraphQLList ( GraphQLNonNull ( ObjectType ) ) ) ,
484
- ) . not . to . throw ( ) ;
484
+ ) . to . not . throw ( ) ;
485
485
} ) ;
486
486
487
487
it ( 'returns false for non-null types' , ( ) => {
@@ -510,7 +510,7 @@ describe('Type predicates', () => {
510
510
describe ( 'isNamedType' , ( ) => {
511
511
it ( 'returns true for unwrapped types' , ( ) => {
512
512
expect ( isNamedType ( ObjectType ) ) . to . equal ( true ) ;
513
- expect ( ( ) => assertNamedType ( ObjectType ) ) . not . to . throw ( ) ;
513
+ expect ( ( ) => assertNamedType ( ObjectType ) ) . to . not . throw ( ) ;
514
514
} ) ;
515
515
516
516
it ( 'returns false for list and non-null types' , ( ) => {
@@ -636,12 +636,12 @@ describe('Directive predicates', () => {
636
636
describe ( 'isDirective' , ( ) => {
637
637
it ( 'returns true for spec defined directive' , ( ) => {
638
638
expect ( isDirective ( GraphQLSkipDirective ) ) . to . equal ( true ) ;
639
- expect ( ( ) => assertDirective ( GraphQLSkipDirective ) ) . not . to . throw ( ) ;
639
+ expect ( ( ) => assertDirective ( GraphQLSkipDirective ) ) . to . not . throw ( ) ;
640
640
} ) ;
641
641
642
642
it ( 'returns true for custom directive' , ( ) => {
643
643
expect ( isDirective ( Directive ) ) . to . equal ( true ) ;
644
- expect ( ( ) => assertDirective ( Directive ) ) . not . to . throw ( ) ;
644
+ expect ( ( ) => assertDirective ( Directive ) ) . to . not . throw ( ) ;
645
645
} ) ;
646
646
647
647
it ( 'returns false for directive class (rather than instance)' , ( ) => {
0 commit comments