diff --git a/package.json b/package.json index 95bea087641..ff9edfd1711 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "uuid": "^3.0.1" }, "peerDependencies": { - "graphql": "^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0" + "graphql": "^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0" }, "optionalDependencies": { "@types/graphql": "^0.8.5" @@ -69,7 +69,7 @@ "body-parser": "^1.15.0", "chai": "^3.5.0", "express": "^4.13.4", - "graphql": "^0.8.1", + "graphql": "^0.9.0", "graphql-subscriptions": "^0.2.0", "graphql-type-json": "^0.1.3", "istanbul": "^0.4.5", diff --git a/src/test/testSchemaGenerator.ts b/src/test/testSchemaGenerator.ts index 968bed119ee..ca01619047a 100644 --- a/src/test/testSchemaGenerator.ts +++ b/src/test/testSchemaGenerator.ts @@ -4,9 +4,6 @@ import { assert, expect } from 'chai'; import { graphql, - GraphQLInt, - GraphQLObjectType, - GraphQLSchema, GraphQLResolveInfo, GraphQLScalarType, Kind, @@ -22,7 +19,6 @@ import { addErrorLoggingToSchema, addSchemaLevelResolveFunction, attachConnectorsToContext, - assertResolveFunctionsPresent, chainResolvers, concatenateTypeDefs, } from '../schemaGenerator'; @@ -832,27 +828,6 @@ describe('generating schema from shorthand', () => { assert.doesNotThrow(makeExecutableSchema.bind(null, { typeDefs: short, resolvers: rf }), SchemaError); }); - it('throws an error if field.resolve is not a function', () => { - const schema = new GraphQLSchema({ - query: new GraphQLObjectType( { - name: 'Query', - fields: { - aField: { - type: GraphQLInt, - args: { a: { type: GraphQLInt } }, - resolve: 'NOT A FUNCTION', - }, - }, - }), - }); - - const resolverValidationOptions: IResolverValidationOptions = { - requireResolversForArgs: true, - }; - - expect(() => assertResolveFunctionsPresent(schema, resolverValidationOptions)).to.throw('Resolver "Query.aField" must be a function'); - }); - it('throws an error if a resolver is not a function', () => { const short = ` type Query{