This commit is contained in:
@@ -3,8 +3,16 @@ const { expect } = require('chai');
|
||||
const app = require('../src/app');
|
||||
|
||||
describe('GET /', () => {
|
||||
it('should run the app server', async () => {
|
||||
beforeEach(async () => {
|
||||
const res = await request(app).get('/');
|
||||
expect(res.status).to.equal(200);
|
||||
this.res = res;
|
||||
});
|
||||
|
||||
it('should run the app server', async () => {
|
||||
expect(this.res.status).to.equal(200);
|
||||
});
|
||||
|
||||
it('should return an HTML response', async () => {
|
||||
expect(this.res.headers['content-type']).match(/text\/html/);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user