11import assert from 'assert' ;
22import test from 'node:test' ;
3- import { version } from 'typescript' ;
43import {
54 Project ,
65 Route ,
@@ -118,7 +117,7 @@ async function testCase(
118117 const openapi = convertRoutesToOpenAPI (
119118 {
120119 title : name ,
121- version,
120+ version : "1.0.0" ,
122121 description,
123122 } ,
124123 [ ] ,
@@ -138,7 +137,7 @@ testCase(
138137 openapi : '3.0.3' ,
139138 info : {
140139 title : 'simple api spec with imported types' ,
141- version : '4.7.4 ' ,
140+ version : '1.0.0 ' ,
142141 description : 'simple api spec with imported types' ,
143142 } ,
144143 paths : {
@@ -237,7 +236,7 @@ testCase(
237236 openapi : '3.0.3' ,
238237 info : {
239238 title : 'simple api spec with exported enum' ,
240- version : '4.7.4 ' ,
239+ version : '1.0.0 ' ,
241240 description : 'simple api spec with exported enum' ,
242241 } ,
243242 paths : {
@@ -279,7 +278,7 @@ testCase(
279278 openapi : "3.0.3" ,
280279 info : {
281280 title : "simple api spec with exported union type" ,
282- version : "4.7.4 " ,
281+ version : "1.0.0 " ,
283282 description : "simple api spec with exported union type"
284283 } ,
285284 paths : {
@@ -324,7 +323,7 @@ testCase("simple api spec with custom codec", "test/sample-types/apiSpecWithCust
324323 openapi : "3.0.3" ,
325324 info : {
326325 title : "simple api spec with custom codec" ,
327- version : "4.7.4 " ,
326+ version : "1.0.0 " ,
328327 description : "simple api spec with custom codec"
329328 } ,
330329 paths : {
@@ -363,4 +362,4 @@ testCase("simple api spec with custom codec", "test/sample-types/apiSpecWithCust
363362 components : {
364363 schemas : { }
365364 }
366- } , [ ] ) ;
365+ } , [ ] ) ;
0 commit comments