Add test default calendar

This commit is contained in:
Rodrigo Ramírez Norambuena
2017-03-10 03:25:16 -03:00
parent f8d80422b2
commit 1c235aa761
3 changed files with 256 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
const globalSetup = require("../global-setup");
const app = globalSetup.app;
const chai = require("chai");
const expect = chai.expect;
describe("Calendar module", function () {
this.timeout(20000);
beforeEach(function (done) {
app.start().then(function() { done(); } );
});
afterEach(function (done) {
app.stop().then(function() { done(); });
});
describe("Default configuration", function() {
before(function() {
// Set config sample for use in test
process.env.MM_CONFIG_FILE = "tests/configs/modules/calendar/default.js";
});
it("Should return TestEvents", function () {
return app.client.waitUntilTextExists(".calendar", "TestEvent", 10000);
});
});
});