mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
fix calendar_test_recurring.ics and uncomment recurring tests
This commit is contained in:
parent
fb96cc3c72
commit
0c1abad9df
@ -12,7 +12,7 @@ BEGIN:STANDARD
|
|||||||
TZOFFSETFROM:+0000
|
TZOFFSETFROM:+0000
|
||||||
TZOFFSETTO:+0000
|
TZOFFSETTO:+0000
|
||||||
TZNAME:GMT
|
TZNAME:GMT
|
||||||
DTSTART:19700101T00000--äüüßßß-0
|
DTSTART:19700101T000000
|
||||||
END:STANDARD
|
END:STANDARD
|
||||||
END:VTIMEZONE
|
END:VTIMEZONE
|
||||||
BEGIN:VEVENT
|
BEGIN:VEVENT
|
||||||
|
@ -70,45 +70,33 @@ describe("Calendar module", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// todo: recurring event tests not working since upgrade to node-ical v0.15.1 (versions v0.14.1 and before are o.k.)
|
describe("Recurring event", () => {
|
||||||
// [19.09.2022 21:08.00.279] [ERROR] Calendar Error. Could not fetch calendar: http://localhost:8080/tests/configs/data/calendar_test_recurring.ics TypeError: curr.start.getTime is not a function
|
beforeAll((done) => {
|
||||||
// at Object.originalEnd (/opt/magic_mirror/node_modules/node-ical/ical.js:423:44)
|
helpers.startApplication("tests/configs/modules/calendar/recurring.js");
|
||||||
// at Object.END (/opt/magic_mirror/node_modules/node-ical/ical.js:602:26)
|
helpers.getDocument(done);
|
||||||
// at Object.handleObject (/opt/magic_mirror/node_modules/node-ical/ical.js:634:39)
|
});
|
||||||
// at Object.parseLines (/opt/magic_mirror/node_modules/node-ical/ical.js:686:18)
|
|
||||||
// at Object.parseICS (/opt/magic_mirror/node_modules/node-ical/ical.js:722:18)
|
|
||||||
// at sync.parseICS (/opt/magic_mirror/node_modules/node-ical/node-ical.js:198:15)
|
|
||||||
// at autodetect.parseICS (/opt/magic_mirror/node_modules/node-ical/node-ical.js:229:17)
|
|
||||||
// at /opt/magic_mirror/modules/default/calendar/calendarfetcher.js:72:18
|
|
||||||
// at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
||||||
|
|
||||||
// describe("Recurring event", () => {
|
it("should show the recurring birthday event 6 times", (done) => {
|
||||||
// beforeAll((done) => {
|
testElementLength(done, ".calendar .event", 6);
|
||||||
// helpers.startApplication("tests/configs/modules/calendar/recurring.js");
|
});
|
||||||
// helpers.getDocument(done);
|
});
|
||||||
// });
|
|
||||||
|
|
||||||
// it("should show the recurring birthday event 6 times", (done) => {
|
process.setMaxListeners(0);
|
||||||
// testElementLength(done, ".calendar .event", 6);
|
for (let i = -12; i < 12; i++) {
|
||||||
// });
|
describe("Recurring event per timezone", () => {
|
||||||
// });
|
beforeAll((done) => {
|
||||||
|
Date.prototype.getTimezoneOffset = () => {
|
||||||
|
return i * 60;
|
||||||
|
};
|
||||||
|
helpers.startApplication("tests/configs/modules/calendar/recurring.js");
|
||||||
|
helpers.getDocument(done);
|
||||||
|
});
|
||||||
|
|
||||||
// process.setMaxListeners(0);
|
it('should contain text "Mar 25th" in timezone UTC ' + -i, (done) => {
|
||||||
// for (let i = -12; i < 12; i++) {
|
testTextContain(done, ".calendar", "Mar 25th");
|
||||||
// describe("Recurring event per timezone", () => {
|
});
|
||||||
// beforeAll((done) => {
|
});
|
||||||
// Date.prototype.getTimezoneOffset = () => {
|
}
|
||||||
// return i * 60;
|
|
||||||
// };
|
|
||||||
// helpers.startApplication("tests/configs/modules/calendar/recurring.js");
|
|
||||||
// helpers.getDocument(done);
|
|
||||||
// });
|
|
||||||
|
|
||||||
// it('should contain text "Mar 25th" in timezone UTC ' + -i, (done) => {
|
|
||||||
// testTextContain(done, ".calendar", "Mar 25th");
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
describe("Changed port", () => {
|
describe("Changed port", () => {
|
||||||
beforeAll((done) => {
|
beforeAll((done) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user