From 254fac52a72820dac5b03b2d76e3cb534f2e6d4a Mon Sep 17 00:00:00 2001 From: "IceHe.xyz" Date: Thu, 16 Jun 2022 16:59:00 +0800 Subject: [PATCH] test(integration-tests): check swagger.json (#1127) --- packages/integration-tests/tests/swagger-check.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 packages/integration-tests/tests/swagger-check.test.ts diff --git a/packages/integration-tests/tests/swagger-check.test.ts b/packages/integration-tests/tests/swagger-check.test.ts new file mode 100644 index 000000000..2335793b6 --- /dev/null +++ b/packages/integration-tests/tests/swagger-check.test.ts @@ -0,0 +1,7 @@ +import api from '@/api'; + +describe('Swagger check', () => { + it('should succeed to provide swagger.json', async () => { + expect(await api.get('swagger.json')).toHaveProperty('statusCode', 200); + }); +});