You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
446 B
18 lines
446 B
const chai = require('chai');
|
|
const chaiHttp = require('chai-http');
|
|
const app = require('../server');
|
|
|
|
chai.use(chaiHttp);
|
|
const { expect } = chai;
|
|
|
|
describe('Express Server Tests', () => {
|
|
it('should respond with status 200 on the root path', (done) => {
|
|
chai.request(app)
|
|
.get('/')
|
|
.end((err, res) => {
|
|
expect(res).to.have.status(200);
|
|
done();
|
|
});
|
|
});
|
|
});
|