( api: HttpApi.HttpApi<Id, Groups, E, R>, expected: OpenApi.OpenAPISpec, options?: Options )
| 146 | } |
| 147 | |
| 148 | const expectSpec = <Id extends string, Groups extends HttpApiGroup.HttpApiGroup.Any, E, R>( |
| 149 | api: HttpApi.HttpApi<Id, Groups, E, R>, |
| 150 | expected: OpenApi.OpenAPISpec, |
| 151 | options?: Options |
| 152 | ) => { |
| 153 | const spec = OpenApi.fromApi(api, options) |
| 154 | // console.log(JSON.stringify(spec.paths, null, 2)) |
| 155 | // console.log(JSON.stringify(spec, null, 2)) |
| 156 | deepStrictEqual(spec, expected) |
| 157 | } |
| 158 | |
| 159 | const expectPaths = <Id extends string, Groups extends HttpApiGroup.HttpApiGroup.Any, E, R>( |
| 160 | api: HttpApi.HttpApi<Id, Groups, E, R>, |
no test coverage detected