Skip to content

Commit 2dd46eb

Browse files
committed
add failing test for #2895
1 parent 1611bbb commit 2dd46eb

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/type/__tests__/introspection-test.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,4 +1586,25 @@ describe('Introspection', () => {
15861586
}),
15871587
).to.not.throw();
15881588
});
1589+
1590+
it('executes an introspection query', () => {
1591+
const schema = buildSchema(`
1592+
type Query {
1593+
oldField(input: Boolean @deprecated(reason: "got over it")): String
1594+
}
1595+
`);
1596+
1597+
const source = getIntrospectionQuery({
1598+
inputValueDeprecation: true,
1599+
});
1600+
1601+
const { data, errors } = graphqlSync({
1602+
schema,
1603+
source,
1604+
});
1605+
1606+
expect(data).to.be.ok;
1607+
expect(errors).to.be.undefined;
1608+
});
1609+
15891610
});

0 commit comments

Comments
 (0)