Fix clock_es_spec running before the clock_spec

This commit is contained in:
Rodrigo Ramírez Norambuena 2017-08-05 22:30:38 -04:00
parent 4df6e0ee7d
commit d34b493b7d

View File

@ -74,21 +74,12 @@ describe("Clock set to spanish language module", function() {
}); });
}); });
describe("with showWeek config enabled", function() { describe("with showWeek config enabled", function() {
before(function() { before(function() {
// Set config sample for use in test // Set config sample for use in test
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/es/clock_showWeek.js"; process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/es/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() { it("shows week with correct format", function() {
const weekRegex = /^Semana [0-9]{1,2}$/; const weekRegex = /^Semana [0-9]{1,2}$/;
return app.client.waitUntilWindowLoaded() return app.client.waitUntilWindowLoaded()