init
This commit is contained in:
14
tests/integration/docs.test.js
Normal file
14
tests/integration/docs.test.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const request = require('supertest');
|
||||
const httpStatus = require('http-status');
|
||||
const app = require('../../src/app');
|
||||
const config = require('../../src/config/config');
|
||||
|
||||
describe('Auth routes', () => {
|
||||
describe('GET /v1/docs', () => {
|
||||
test('should return 404 when running in production', async () => {
|
||||
config.env = 'production';
|
||||
await request(app).get('/v1/docs').send().expect(httpStatus.NOT_FOUND);
|
||||
config.env = process.env.NODE_ENV;
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user