Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions packages/openapi-generator/test/externalModuleApiSpec.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import assert from 'assert';
import test from 'node:test';
import { version } from 'typescript';
import {
Project,
Route,
Expand Down Expand Up @@ -118,7 +117,7 @@ async function testCase(
const openapi = convertRoutesToOpenAPI(
{
title: name,
version,
version: "1.0.0",
description,
},
[],
Expand All @@ -138,7 +137,7 @@ testCase(
openapi: '3.0.3',
info: {
title: 'simple api spec with imported types',
version: '4.7.4',
version: '1.0.0',
description: 'simple api spec with imported types',
},
paths: {
Expand Down Expand Up @@ -237,7 +236,7 @@ testCase(
openapi: '3.0.3',
info: {
title: 'simple api spec with exported enum',
version: '4.7.4',
version: '1.0.0',
description: 'simple api spec with exported enum',
},
paths: {
Expand Down Expand Up @@ -279,7 +278,7 @@ testCase(
openapi: "3.0.3",
info: {
title: "simple api spec with exported union type",
version: "4.7.4",
version: "1.0.0",
description: "simple api spec with exported union type"
},
paths: {
Expand Down Expand Up @@ -324,7 +323,7 @@ testCase("simple api spec with custom codec", "test/sample-types/apiSpecWithCust
openapi: "3.0.3",
info: {
title: "simple api spec with custom codec",
version: "4.7.4",
version: "1.0.0",
description: "simple api spec with custom codec"
},
paths: {
Expand Down Expand Up @@ -363,4 +362,4 @@ testCase("simple api spec with custom codec", "test/sample-types/apiSpecWithCust
components: {
schemas: {}
}
}, []);
}, []);