mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
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:
parent
afe2b934de
commit
5770b9dc0e
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user