mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 12:12:20 +00:00
Merge pull request #2753 from khassel/calendar-test
This commit is contained in:
commit
01010fe795
@ -11,6 +11,8 @@ _This release is scheduled to be released on 2022-01-01._
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- Added test for calendar recurring event with checks the correct date displayed (related to #2752).
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
|
|
||||||
- ESLint version supports now ECMAScript 2018
|
- ESLint version supports now ECMAScript 2018
|
||||||
|
@ -70,6 +70,25 @@ describe("Calendar module", function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
process.setMaxListeners(0);
|
||||||
|
for (let i = -12; i < 12; i++) {
|
||||||
|
describe("Recurring event per timezone", function () {
|
||||||
|
beforeAll(function (done) {
|
||||||
|
Date.prototype.getTimezoneOffset = function () {
|
||||||
|
return i * 60;
|
||||||
|
};
|
||||||
|
helpers.startApplication("tests/configs/modules/calendar/recurring.js");
|
||||||
|
helpers.getDocument(done, 3000);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should contain text "Mar 25th" in timezone UTC ' + -i, () => {
|
||||||
|
const elem = document.querySelector(".calendar");
|
||||||
|
expect(elem).not.toBe(null);
|
||||||
|
expect(elem.textContent).toContain("Mar 25th");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
describe("Changed port", function () {
|
describe("Changed port", function () {
|
||||||
beforeAll(function (done) {
|
beforeAll(function (done) {
|
||||||
helpers.startApplication("tests/configs/modules/calendar/changed-port.js");
|
helpers.startApplication("tests/configs/modules/calendar/changed-port.js");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user