fix(GOV-009): 完成脚手架审查整改
This commit is contained in:
@@ -18,12 +18,9 @@ describe('Server OpenAPI 单向发布', () => {
|
||||
path.resolve(__dirname, '../../../openapi/openapi.json'),
|
||||
'utf8',
|
||||
);
|
||||
const document = JSON.parse(content) as {
|
||||
paths: Record<string, unknown>;
|
||||
components?: { schemas?: Record<string, unknown> };
|
||||
};
|
||||
const committedDocument = JSON.parse(content) as Record<string, unknown>;
|
||||
const liveDocument = await createOpenApiDocument();
|
||||
|
||||
expect(document.paths).toHaveProperty('/api/v1/health');
|
||||
expect(document.components?.schemas).toHaveProperty('HealthResponseDto');
|
||||
expect(committedDocument).toEqual(liveDocument);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user