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(); }); }); });