Skip to content

Commit a406fc3

Browse files
chore: add test cases
1 parent c6a2894 commit a406fc3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@ export async function ${api.functionName}(${api.body ? `data: ${api.body.type}`
241241
isGenJavaScript: true,
242242
});
243243

244+
// 测试生成 response type comments
245+
await openAPI.generateService({
246+
schemaPath: `${__dirname}/example-files/openapi-response-desc.json`,
247+
serversPath: './apis/openapi-response-desc',
248+
});
249+
244250
// check 文件生成
245251
const fileControllerStr = fs.readFileSync(
246252
path.join(__dirname, 'apis/file/fileController.ts'),

0 commit comments

Comments
 (0)