Test env 404 not found request http://localhost:8080/nothing

This test expect gets 404 HTTP code on get request to
http://localhost:8080/nothing
This commit is contained in:
Rodrigo Ramírez Norambuena 2017-03-09 17:10:32 -03:00
parent afe2b934de
commit 5770b9dc0e

View File

@ -37,4 +37,11 @@ describe("Electron app environment", function () {
});
});
it("get request from http://localhost:8080/nothing should return 404", function (done) {
request.get("http://localhost:8080/nothing", function (err, res, body) {
expect(res.statusCode).to.equal(404);
done();
});
});
});