Skip to content

Commit

Permalink
adicionando dot env
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandes-natanael committed Dec 11, 2023
1 parent f7770f8 commit a26d361
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/gateway.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import request from 'supertest';
import { app, gateway } from '../src/gateway';
import 'dotenv/config';

describe('GET /', () => {
afterAll((done) => {
gateway.close(done);
});

it('should return a 200 status and the correct message', async () => {

const response = await request(app).get('/');
expect(response.status).toBe(200);
expect(response.body.message).toBe('Running Gateway');
Expand Down

0 comments on commit a26d361

Please sign in to comment.