mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-23 05:20:03 +00:00
Fix broken next test:
Now after ran the test MM_PORT of test case for change of port the enviroment variable is deleted.
This commit is contained in:
@@ -36,6 +36,10 @@ describe("port directive configuration", function () {
|
||||
// Set config sample for use in this test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/port_8090.js";
|
||||
});
|
||||
|
||||
after(function(){
|
||||
delete process.env.MM_PORT;
|
||||
});
|
||||
it("should return 200", function (done) {
|
||||
request.get("http://localhost:8100", function (err, res, body) {
|
||||
expect(res.statusCode).to.equal(200);
|
||||
|
Reference in New Issue
Block a user