15 lines
331 B
JavaScript
15 lines
331 B
JavaScript
|
const expect = require("chai").expect;
|
||
|
const request = require("request");
|
||
|
const server = require("../app");
|
||
|
|
||
|
it("Main page content", (done) => {
|
||
|
request("http://localhost:8080" , function(error, response) {
|
||
|
expect(response.statusCode).to.equal(200);
|
||
|
done();
|
||
|
});
|
||
|
});
|
||
|
|
||
|
after(() => {
|
||
|
server.close();
|
||
|
});
|