File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1- import { GraphQLSchemaConfig } from 'graphql/type/schema' ;
1+ import { GraphQLSchema } from 'graphql/type/schema' ;
22
33interface Fields {
44 [ index : string ] : number ;
@@ -13,7 +13,7 @@ interface TypeWeightObject {
1313 [ index : string ] : Type ;
1414}
1515
16- function buildTypeWeightsFromSchema ( schema : GraphQLSchemaConfig ) : TypeWeightObject {
16+ function buildTypeWeightsFromSchema ( schema : GraphQLSchema ) : TypeWeightObject {
1717 throw Error ( `getTypeWeightsFromSchema is not implemented.` ) ;
1818}
1919export default buildTypeWeightsFromSchema ;
Original file line number Diff line number Diff line change 1+ import { buildSchema } from 'graphql' ;
2+ import { GraphQLSchema } from 'graphql/type/schema' ;
13import buildTypeWeightsFromSchema from '../../src/analysis/buildTypeWeights' ;
4+
5+ describe ( 'Test buildTypeWeightsFromSchema function' , ( ) => {
6+ beforeEach ( ( ) => {
7+ let schema : GraphQLSchema ;
8+ } ) ;
9+
10+ test ( 'creates the type weight object from graphql schema object' , ( ) => { } ) ;
11+
12+ test ( '' ) ;
13+ } ) ;
You can’t perform that action at this time.
0 commit comments