Add test for check MM_PORT enviroment variable

This commit is contained in:
Rodrigo Ramírez Norambuena 2017-03-10 18:21:06 -03:00
parent c282bb2fe1
commit c6fa0cc072

View File

@ -29,4 +29,19 @@ describe("port directive configuration", function () {
});
});
});
describe("Set port 8100 on enviroment variable MM_PORT", function () {
before(function() {
process.env.MM_PORT = 8100;
// Set config sample for use in this test
process.env.MM_CONFIG_FILE = "tests/configs/port_8090.js";
});
it("should return 200", function (done) {
request.get("http://localhost:8100", function (err, res, body) {
expect(res.statusCode).to.equal(200);
done();
});
});
});
});