mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
25 lines
639 B
JavaScript
25 lines
639 B
JavaScript
const globalSetup = require("../global-setup");
|
|
const app = globalSetup.app;
|
|
|
|
describe("Test helloworld module", function () {
|
|
this.timeout(20000);
|
|
|
|
before(function() {
|
|
// Set config sample for use in test
|
|
process.env.MM_CONFIG_FILE = "tests/configs/modules/helloworld/helloworld.js";
|
|
});
|
|
|
|
beforeEach(function (done) {
|
|
app.start().then(function() { done(); } );
|
|
});
|
|
|
|
afterEach(function (done) {
|
|
app.stop().then(function() { done(); });
|
|
});
|
|
|
|
it("Test message helloworld module", function () {
|
|
return app.client.waitUntilWindowLoaded()
|
|
.getText(".helloworld").should.eventually.equal("Test HelloWorld Module");
|
|
});
|
|
});
|