feat: add simple Express app with /hello endpoint and tests
This commit is contained in:
10
tests/integration/app.test.js
Normal file
10
tests/integration/app.test.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const request = require('supertest');
|
||||
const app = require('../../src/server');
|
||||
|
||||
describe('GET /hello', () => {
|
||||
it('should return Hello world', async () => {
|
||||
const res = await request(app).get('/hello');
|
||||
expect(res.statusCode).toBe(200);
|
||||
expect(res.text).toBe('Hello world');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user