File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -140,19 +140,19 @@ describe('Type System: Schema', () => {
140
140
it ( 'defines a query root' , ( ) => {
141
141
const schema = new GraphQLSchema ( { query : testType } ) ;
142
142
expect ( schema . getQueryType ( ) ) . to . equal ( testType ) ;
143
- expect ( schema . getTypeMap ( ) ) . to . include . key ( 'TestType' ) ;
143
+ expect ( schema . getTypeMap ( ) ) . to . include . keys ( 'TestType' ) ;
144
144
} ) ;
145
145
146
146
it ( 'defines a mutation root' , ( ) => {
147
147
const schema = new GraphQLSchema ( { mutation : testType } ) ;
148
148
expect ( schema . getMutationType ( ) ) . to . equal ( testType ) ;
149
- expect ( schema . getTypeMap ( ) ) . to . include . key ( 'TestType' ) ;
149
+ expect ( schema . getTypeMap ( ) ) . to . include . keys ( 'TestType' ) ;
150
150
} ) ;
151
151
152
152
it ( 'defines a subscription root' , ( ) => {
153
153
const schema = new GraphQLSchema ( { subscription : testType } ) ;
154
154
expect ( schema . getSubscriptionType ( ) ) . to . equal ( testType ) ;
155
- expect ( schema . getTypeMap ( ) ) . to . include . key ( 'TestType' ) ;
155
+ expect ( schema . getTypeMap ( ) ) . to . include . keys ( 'TestType' ) ;
156
156
} ) ;
157
157
} ) ;
158
158
You can’t perform that action at this time.
0 commit comments