fix: stabilize web workspace quality gates
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
This commit is contained in:
@@ -37,8 +37,6 @@ describe('Swagger Documentation', () => {
|
||||
beforeEach(() => {
|
||||
app = express();
|
||||
app.use(express.json());
|
||||
// Reset mock
|
||||
(setupSwagger as jest.Mock).mockClear();
|
||||
});
|
||||
|
||||
describe('specs', () => {
|
||||
@@ -92,7 +90,9 @@ describe('Swagger Documentation', () => {
|
||||
|
||||
setupSwagger(mockApp, '/docs');
|
||||
|
||||
expect(setupSwagger).toHaveBeenCalledWith(mockApp, '/docs');
|
||||
expect(mockApp.use).toHaveBeenCalled();
|
||||
expect(mockApp.get).toHaveBeenCalledWith('/docs.json', expect.any(Function));
|
||||
expect(mockApp.get).toHaveBeenCalledWith('/docs.yaml', expect.any(Function));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user