Skip to content

Commit

Permalink
add failing test for #2895
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgovea committed Apr 21, 2021
1 parent 1611bbb commit 2dd46eb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/type/__tests__/introspection-test.js
Expand Up @@ -1586,4 +1586,25 @@ describe('Introspection', () => {
}),
).to.not.throw();
});

it('executes an introspection query', () => {
const schema = buildSchema(`
type Query {
oldField(input: Boolean @deprecated(reason: "got over it")): String
}
`);

const source = getIntrospectionQuery({
inputValueDeprecation: true,
});

const { data, errors } = graphqlSync({
schema,
source,
});

expect(data).to.be.ok;
expect(errors).to.be.undefined;
});

});

0 comments on commit 2dd46eb

Please sign in to comment.