import axios from 'axios'; import { config } from '../config'; const base = "http://localhost:" + config.internal_port describe('GET /docs/openapi.json', () => { it('OpenAPI Spec is availdable 200', async () => { const res = await axios.get(base + '/docs/openapi.json'); expect(res.status).toEqual(200); }); }); describe('GET /docs/swagger.json', () => { it('OpenAPI Spec is availdable 200', async () => { const res = await axios.get(base + '/docs/swagger.json'); expect(res.status).toEqual(200); }); }); describe('GET /docs/swaggerui', () => { it('swaggerui is availdable 200', async () => { const res = await axios.get(base + '/docs/swaggerui'); expect(res.status).toEqual(200); }); }); describe('GET /docs/redoc', () => { it('redoc is availdable 200', async () => { const res = await axios.get(base + '/docs/redoc'); expect(res.status).toEqual(200); }); }); describe('GET /docs/rapidoc', () => { it('rapidoc is availdable 200', async () => { const res = await axios.get(base + '/docs/rapidoc'); expect(res.status).toEqual(200); }); });