mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 04:45:17 +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:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user