@@ -18,22 +18,22 @@ test('returns GraphQLID for fields named id or xxx_id', () => {
18
18
19
19
test ( 'returns GraphQLList for arrays' , ( ) => {
20
20
expect ( getTypeFromValues ( 'foo' , [ [ true , false ] , [ true ] ] ) ) . toEqual (
21
- new GraphQLList ( GraphQLBoolean ) ,
21
+ new GraphQLList ( GraphQLBoolean )
22
22
) ;
23
23
expect ( getTypeFromValues ( 'foo' , [ [ 'a' , 'b' ] , [ 'c' , 'd' ] ] ) ) . toEqual (
24
- new GraphQLList ( GraphQLString ) ,
24
+ new GraphQLList ( GraphQLString )
25
25
) ;
26
26
expect ( getTypeFromValues ( 'foo' , [ [ 123 , 456 ] , [ 789 , 123 ] ] ) ) . toEqual (
27
- new GraphQLList ( GraphQLInt ) ,
27
+ new GraphQLList ( GraphQLInt )
28
28
) ;
29
29
expect ( getTypeFromValues ( 'foo' , [ [ 1.23 , 456 ] , [ - 5 , 123 ] ] ) ) . toEqual (
30
- new GraphQLList ( GraphQLFloat ) ,
30
+ new GraphQLList ( GraphQLFloat )
31
31
) ;
32
32
} ) ;
33
33
34
34
test ( 'returns GraphQLBoolean for booleans' , ( ) =>
35
35
expect ( getTypeFromValues ( 'foo' , [ true , true , false ] ) ) . toEqual (
36
- GraphQLBoolean ,
36
+ GraphQLBoolean
37
37
) ) ;
38
38
39
39
test ( 'returns GraphQLString for strings' , ( ) => {
@@ -49,28 +49,28 @@ test('returns GraphQLFloat for floats', () =>
49
49
50
50
test ( 'returns DateType for Dates' , ( ) =>
51
51
expect (
52
- getTypeFromValues ( 'foo' , [ new Date ( '2017-03-15' ) , new Date ( ) ] ) ,
52
+ getTypeFromValues ( 'foo' , [ new Date ( '2017-03-15' ) , new Date ( ) ] )
53
53
) . toEqual ( DateType ) ) ;
54
54
55
55
test ( 'returns GraphQLJSON for objects' , ( ) =>
56
56
expect (
57
- getTypeFromValues ( 'foo' , [ { foo : 1 } , { bar : 2 } , { id : 'a' } ] ) ,
57
+ getTypeFromValues ( 'foo' , [ { foo : 1 } , { bar : 2 } , { id : 'a' } ] )
58
58
) . toEqual ( GraphQLJSON ) ) ;
59
59
60
60
test ( 'returns GraphQLJSON for arrays of objects' , ( ) =>
61
61
expect (
62
- getTypeFromValues ( 'foo' , [ [ { foo : 1 } , { bar : 2 } ] , [ { id : 'a' } ] ] ) ,
62
+ getTypeFromValues ( 'foo' , [ [ { foo : 1 } , { bar : 2 } ] , [ { id : 'a' } ] ] )
63
63
) . toEqual ( GraphQLJSON ) ) ;
64
64
65
65
test ( 'returns GraphQLString for mixed values' , ( ) =>
66
66
expect ( getTypeFromValues ( 'foo' , [ 0 , '&' , new Date ( ) ] ) ) . toEqual (
67
- GraphQLString ,
67
+ GraphQLString
68
68
) ) ;
69
69
70
70
test ( 'returns GraphQLString for no values' , ( ) =>
71
71
expect ( getTypeFromValues ( 'foo' ) ) . toEqual ( GraphQLString ) ) ;
72
72
73
73
test ( 'returns GraphQLNonNull when all values are filled' , ( ) =>
74
74
expect ( getTypeFromValues ( 'foo' , [ ] , true ) ) . toEqual (
75
- new GraphQLNonNull ( GraphQLString ) ,
75
+ new GraphQLNonNull ( GraphQLString )
76
76
) ) ;
0 commit comments