Skip to content

Commit

Permalink
schema-test: use chai's keys instead of undocumented key (#2936)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Feb 21, 2021
1 parent 5043f75 commit 334ceb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/type/__tests__/schema-test.js
Expand Up @@ -140,19 +140,19 @@ describe('Type System: Schema', () => {
it('defines a query root', () => {
const schema = new GraphQLSchema({ query: testType });
expect(schema.getQueryType()).to.equal(testType);
expect(schema.getTypeMap()).to.include.key('TestType');
expect(schema.getTypeMap()).to.include.keys('TestType');
});

it('defines a mutation root', () => {
const schema = new GraphQLSchema({ mutation: testType });
expect(schema.getMutationType()).to.equal(testType);
expect(schema.getTypeMap()).to.include.key('TestType');
expect(schema.getTypeMap()).to.include.keys('TestType');
});

it('defines a subscription root', () => {
const schema = new GraphQLSchema({ subscription: testType });
expect(schema.getSubscriptionType()).to.equal(testType);
expect(schema.getTypeMap()).to.include.key('TestType');
expect(schema.getTypeMap()).to.include.keys('TestType');
});
});

Expand Down

0 comments on commit 334ceb0

Please sign in to comment.