@@ -167,21 +167,21 @@ describe('removeById() ->', () => {
167167 } ) ;
168168 } ) ;
169169
170- describe ( 'Resolver.getOutputType ()' , ( ) => {
170+ describe ( 'Resolver.getType ()' , ( ) => {
171171 it ( 'should have correct output type name' , ( ) => {
172- const outputType = removeById ( UserModel , UserTypeComposer ) . getOutputType ( ) ;
172+ const outputType = removeById ( UserModel , UserTypeComposer ) . getType ( ) ;
173173 expect ( outputType . name ) . to . equal ( `RemoveById${ UserTypeComposer . getTypeName ( ) } Payload` ) ;
174174 } ) ;
175175
176176 it ( 'should have recordId field' , ( ) => {
177- const outputType = removeById ( UserModel , UserTypeComposer ) . getOutputType ( ) ;
177+ const outputType = removeById ( UserModel , UserTypeComposer ) . getType ( ) ;
178178 const typeComposer = new TypeComposer ( outputType ) ;
179179 expect ( typeComposer . hasField ( 'recordId' ) ) . to . be . true ;
180180 expect ( typeComposer . getField ( 'recordId' ) . type ) . to . equal ( GraphQLMongoID ) ;
181181 } ) ;
182182
183183 it ( 'should have record field' , ( ) => {
184- const outputType = removeById ( UserModel , UserTypeComposer ) . getOutputType ( ) ;
184+ const outputType = removeById ( UserModel , UserTypeComposer ) . getType ( ) ;
185185 const typeComposer = new TypeComposer ( outputType ) ;
186186 expect ( typeComposer . hasField ( 'record' ) ) . to . be . true ;
187187 expect ( typeComposer . getField ( 'record' ) . type ) . to . equal ( UserTypeComposer . getType ( ) ) ;
@@ -194,7 +194,7 @@ describe('removeById() ->', () => {
194194 fields : ( ) => ( { } ) ,
195195 } ) ;
196196 typeStorage . set ( outputTypeName , existedType ) ;
197- const outputType = removeById ( UserModel , UserTypeComposer ) . getOutputType ( ) ;
197+ const outputType = removeById ( UserModel , UserTypeComposer ) . getType ( ) ;
198198 expect ( outputType ) . to . equal ( existedType ) ;
199199 } ) ;
200200 } ) ;
0 commit comments