Skip to content

Commit 334ceb0

Browse files
schema-test: use chai's keys instead of undocumented key (#2936)
1 parent 5043f75 commit 334ceb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/type/__tests__/schema-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,19 @@ describe('Type System: Schema', () => {
140140
it('defines a query root', () => {
141141
const schema = new GraphQLSchema({ query: testType });
142142
expect(schema.getQueryType()).to.equal(testType);
143-
expect(schema.getTypeMap()).to.include.key('TestType');
143+
expect(schema.getTypeMap()).to.include.keys('TestType');
144144
});
145145

146146
it('defines a mutation root', () => {
147147
const schema = new GraphQLSchema({ mutation: testType });
148148
expect(schema.getMutationType()).to.equal(testType);
149-
expect(schema.getTypeMap()).to.include.key('TestType');
149+
expect(schema.getTypeMap()).to.include.keys('TestType');
150150
});
151151

152152
it('defines a subscription root', () => {
153153
const schema = new GraphQLSchema({ subscription: testType });
154154
expect(schema.getSubscriptionType()).to.equal(testType);
155-
expect(schema.getTypeMap()).to.include.key('TestType');
155+
expect(schema.getTypeMap()).to.include.keys('TestType');
156156
});
157157
});
158158

0 commit comments

Comments
 (0)