Merge branch 'develop' into test-set-MM_PORT

This commit is contained in:
Rodrigo Ramírez Norambuena
2017-03-30 16:12:08 -03:00
committed by GitHub
10 changed files with 85 additions and 2 deletions

View File

@@ -100,4 +100,25 @@ describe("Clock module", function () {
});
});
describe("with showWeek config enabled", function() {
before(function() {
// Set config sample for use in test
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/clock_showWeek.js";
});
beforeEach(function (done) {
app.start().then(function() { done(); } );
});
afterEach(function (done) {
app.stop().then(function() { done(); });
});
it("shows week with correct format", function() {
const weekRegex = /^Week [0-9]{1,2}$/;
return app.client.waitUntilWindowLoaded()
.getText(".clock .week").should.eventually.match(weekRegex);
});
});
});