@@ -7,6 +7,7 @@ import * as resolvers from '../src/resolvers';
77import { createApp } from './common/app' ;
88import { OpenApiValidatorOpts } from '../src/framework/types' ;
99import * as pkg from '../package.json' ;
10+ import { AppWithServer } from './common/app.common' ;
1011
1112const expressVersion = pkg . devDependencies . express ;
1213
@@ -20,7 +21,7 @@ describe('operation handler', () => {
2021 const mwf = OpenApiValidator . middleware ;
2122 app . use ( mwf ( { apiSpec } ) ) ;
2223
23- expect ( ( < any > mwf ) . _oav )
24+ expect ( ( mwf as any ) . _oav )
2425 . to . have . property ( 'options' )
2526 . to . deep . include ( { operationHandlers : false } ) ;
2627
@@ -38,7 +39,7 @@ describe('operation handler', () => {
3839 const mwf = OpenApiValidator . middleware ;
3940 app . use ( mwf ( { apiSpec } ) ) ;
4041
41- expect ( ( < any > mwf ) . _oav )
42+ expect ( ( mwf as any ) . _oav )
4243 . to . have . property ( 'options' )
4344 . to . deep . include ( { operationHandlers : false } ) ;
4445 } ) ;
@@ -55,7 +56,7 @@ describe('operation handler', () => {
5556
5657 app . use ( oav ) ;
5758
58- expect ( ( < any > mwf ) . _oav )
59+ expect ( ( mwf as any ) . _oav )
5960 . to . have . property ( 'options' )
6061 . to . deep . include ( {
6162 operationHandlers : {
@@ -87,7 +88,7 @@ describe('operation handler', () => {
8788
8889 app . use ( oav ) ;
8990
90- expect ( ( < any > mwf ) . _oav )
91+ expect ( ( mwf as any ) . _oav )
9192 . to . have . property ( 'options' )
9293 . to . deep . include ( { operationHandlers : handler } ) ;
9394
@@ -96,8 +97,8 @@ describe('operation handler', () => {
9697} ) ;
9798
9899describe ( 'custom operation handler' , ( ) => {
99- let app = null ;
100- let basePath = null ;
100+ let app : AppWithServer ;
101+ let basePath ;
101102 const apiSpec = path . join (
102103 __dirname ,
103104 'resources/eov-operations.modulepath.yaml' ,
0 commit comments