Skip to content

Commit

Permalink
Fix open handle issue in test
Browse files Browse the repository at this point in the history
  • Loading branch information
hagopj13 committed Jul 4, 2021
1 parent 1610883 commit ab1ccbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/docs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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').expect(httpStatus.NOT_FOUND);
await request(app).get('/v1/docs').send().expect(httpStatus.NOT_FOUND);
config.env = process.env.NODE_ENV;
});
});
Expand Down

0 comments on commit ab1ccbc

Please sign in to comment.