@@ -18,22 +18,22 @@ test('returns GraphQLID for fields named id or xxx_id', () => {
1818
1919test ( 'returns GraphQLList for arrays' , ( ) => {
2020 expect ( getTypeFromValues ( 'foo' , [ [ true , false ] , [ true ] ] ) ) . toEqual (
21- new GraphQLList ( GraphQLBoolean ) ,
21+ new GraphQLList ( GraphQLBoolean )
2222 ) ;
2323 expect ( getTypeFromValues ( 'foo' , [ [ 'a' , 'b' ] , [ 'c' , 'd' ] ] ) ) . toEqual (
24- new GraphQLList ( GraphQLString ) ,
24+ new GraphQLList ( GraphQLString )
2525 ) ;
2626 expect ( getTypeFromValues ( 'foo' , [ [ 123 , 456 ] , [ 789 , 123 ] ] ) ) . toEqual (
27- new GraphQLList ( GraphQLInt ) ,
27+ new GraphQLList ( GraphQLInt )
2828 ) ;
2929 expect ( getTypeFromValues ( 'foo' , [ [ 1.23 , 456 ] , [ - 5 , 123 ] ] ) ) . toEqual (
30- new GraphQLList ( GraphQLFloat ) ,
30+ new GraphQLList ( GraphQLFloat )
3131 ) ;
3232} ) ;
3333
3434test ( 'returns GraphQLBoolean for booleans' , ( ) =>
3535 expect ( getTypeFromValues ( 'foo' , [ true , true , false ] ) ) . toEqual (
36- GraphQLBoolean ,
36+ GraphQLBoolean
3737 ) ) ;
3838
3939test ( 'returns GraphQLString for strings' , ( ) => {
@@ -49,28 +49,28 @@ test('returns GraphQLFloat for floats', () =>
4949
5050test ( 'returns DateType for Dates' , ( ) =>
5151 expect (
52- getTypeFromValues ( 'foo' , [ new Date ( '2017-03-15' ) , new Date ( ) ] ) ,
52+ getTypeFromValues ( 'foo' , [ new Date ( '2017-03-15' ) , new Date ( ) ] )
5353 ) . toEqual ( DateType ) ) ;
5454
5555test ( 'returns GraphQLJSON for objects' , ( ) =>
5656 expect (
57- getTypeFromValues ( 'foo' , [ { foo : 1 } , { bar : 2 } , { id : 'a' } ] ) ,
57+ getTypeFromValues ( 'foo' , [ { foo : 1 } , { bar : 2 } , { id : 'a' } ] )
5858 ) . toEqual ( GraphQLJSON ) ) ;
5959
6060test ( 'returns GraphQLJSON for arrays of objects' , ( ) =>
6161 expect (
62- getTypeFromValues ( 'foo' , [ [ { foo : 1 } , { bar : 2 } ] , [ { id : 'a' } ] ] ) ,
62+ getTypeFromValues ( 'foo' , [ [ { foo : 1 } , { bar : 2 } ] , [ { id : 'a' } ] ] )
6363 ) . toEqual ( GraphQLJSON ) ) ;
6464
6565test ( 'returns GraphQLString for mixed values' , ( ) =>
6666 expect ( getTypeFromValues ( 'foo' , [ 0 , '&' , new Date ( ) ] ) ) . toEqual (
67- GraphQLString ,
67+ GraphQLString
6868 ) ) ;
6969
7070test ( 'returns GraphQLString for no values' , ( ) =>
7171 expect ( getTypeFromValues ( 'foo' ) ) . toEqual ( GraphQLString ) ) ;
7272
7373test ( 'returns GraphQLNonNull when all values are filled' , ( ) =>
7474 expect ( getTypeFromValues ( 'foo' , [ ] , true ) ) . toEqual (
75- new GraphQLNonNull ( GraphQLString ) ,
75+ new GraphQLNonNull ( GraphQLString )
7676 ) ) ;
0 commit comments