@@ -7,6 +7,7 @@ import * as resolvers from '../src/resolvers';
7
7
import { createApp } from './common/app' ;
8
8
import { OpenApiValidatorOpts } from '../src/framework/types' ;
9
9
import * as pkg from '../package.json' ;
10
+ import { AppWithServer } from './common/app.common' ;
10
11
11
12
const expressVersion = pkg . devDependencies . express ;
12
13
@@ -20,7 +21,7 @@ describe('operation handler', () => {
20
21
const mwf = OpenApiValidator . middleware ;
21
22
app . use ( mwf ( { apiSpec } ) ) ;
22
23
23
- expect ( ( < any > mwf ) . _oav )
24
+ expect ( ( mwf as any ) . _oav )
24
25
. to . have . property ( 'options' )
25
26
. to . deep . include ( { operationHandlers : false } ) ;
26
27
@@ -38,7 +39,7 @@ describe('operation handler', () => {
38
39
const mwf = OpenApiValidator . middleware ;
39
40
app . use ( mwf ( { apiSpec } ) ) ;
40
41
41
- expect ( ( < any > mwf ) . _oav )
42
+ expect ( ( mwf as any ) . _oav )
42
43
. to . have . property ( 'options' )
43
44
. to . deep . include ( { operationHandlers : false } ) ;
44
45
} ) ;
@@ -55,7 +56,7 @@ describe('operation handler', () => {
55
56
56
57
app . use ( oav ) ;
57
58
58
- expect ( ( < any > mwf ) . _oav )
59
+ expect ( ( mwf as any ) . _oav )
59
60
. to . have . property ( 'options' )
60
61
. to . deep . include ( {
61
62
operationHandlers : {
@@ -87,7 +88,7 @@ describe('operation handler', () => {
87
88
88
89
app . use ( oav ) ;
89
90
90
- expect ( ( < any > mwf ) . _oav )
91
+ expect ( ( mwf as any ) . _oav )
91
92
. to . have . property ( 'options' )
92
93
. to . deep . include ( { operationHandlers : handler } ) ;
93
94
@@ -96,8 +97,8 @@ describe('operation handler', () => {
96
97
} ) ;
97
98
98
99
describe ( 'custom operation handler' , ( ) => {
99
- let app = null ;
100
- let basePath = null ;
100
+ let app : AppWithServer ;
101
+ let basePath ;
101
102
const apiSpec = path . join (
102
103
__dirname ,
103
104
'resources/eov-operations.modulepath.yaml' ,
0 commit comments