mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
30 lines
693 B
JavaScript
30 lines
693 B
JavaScript
|
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);
|
||
|
});
|
||
|
});
|
||
|
|
||
|
});
|