1
1
import assert from 'assert' ;
2
2
import test from 'node:test' ;
3
- import { version } from 'typescript' ;
4
3
import {
5
4
Project ,
6
5
Route ,
@@ -118,7 +117,7 @@ async function testCase(
118
117
const openapi = convertRoutesToOpenAPI (
119
118
{
120
119
title : name ,
121
- version,
120
+ version : "1.0.0" ,
122
121
description,
123
122
} ,
124
123
[ ] ,
@@ -138,7 +137,7 @@ testCase(
138
137
openapi : '3.0.3' ,
139
138
info : {
140
139
title : 'simple api spec with imported types' ,
141
- version : '4.7.4 ' ,
140
+ version : '1.0.0 ' ,
142
141
description : 'simple api spec with imported types' ,
143
142
} ,
144
143
paths : {
@@ -237,7 +236,7 @@ testCase(
237
236
openapi : '3.0.3' ,
238
237
info : {
239
238
title : 'simple api spec with exported enum' ,
240
- version : '4.7.4 ' ,
239
+ version : '1.0.0 ' ,
241
240
description : 'simple api spec with exported enum' ,
242
241
} ,
243
242
paths : {
@@ -279,7 +278,7 @@ testCase(
279
278
openapi : "3.0.3" ,
280
279
info : {
281
280
title : "simple api spec with exported union type" ,
282
- version : "4.7.4 " ,
281
+ version : "1.0.0 " ,
283
282
description : "simple api spec with exported union type"
284
283
} ,
285
284
paths : {
@@ -324,7 +323,7 @@ testCase("simple api spec with custom codec", "test/sample-types/apiSpecWithCust
324
323
openapi : "3.0.3" ,
325
324
info : {
326
325
title : "simple api spec with custom codec" ,
327
- version : "4.7.4 " ,
326
+ version : "1.0.0 " ,
328
327
description : "simple api spec with custom codec"
329
328
} ,
330
329
paths : {
@@ -363,4 +362,4 @@ testCase("simple api spec with custom codec", "test/sample-types/apiSpecWithCust
363
362
components : {
364
363
schemas : { }
365
364
}
366
- } , [ ] ) ;
365
+ } , [ ] ) ;
0 commit comments