Skip to content

Commit

Permalink
remove obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
helfer committed Jan 24, 2017
1 parent 17997ee commit e596ff5
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/test/testSchemaGenerator.ts
Expand Up @@ -832,27 +832,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(<any> {
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{
Expand Down

0 comments on commit e596ff5

Please sign in to comment.