mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
Finish test case
This commit is contained in:
parent
40c1521591
commit
87d543eb3a
@ -18,7 +18,7 @@ END:VTIMEZONE
|
|||||||
BEGIN:VEVENT
|
BEGIN:VEVENT
|
||||||
DTSTART;VALUE=DATE:20210325
|
DTSTART;VALUE=DATE:20210325
|
||||||
DTEND;VALUE=DATE:20210326
|
DTEND;VALUE=DATE:20210326
|
||||||
RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTHDAY=25
|
RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1
|
||||||
DTSTAMP:20210421T154106Z
|
DTSTAMP:20210421T154106Z
|
||||||
UID:zzz@google.com
|
UID:zzz@google.com
|
||||||
REATED:20200831T200244Z
|
REATED:20200831T200244Z
|
||||||
|
@ -24,11 +24,8 @@ let config = {
|
|||||||
config: {
|
config: {
|
||||||
calendars: [
|
calendars: [
|
||||||
{
|
{
|
||||||
maximumEntries: 4,
|
maximumEntries: 6,
|
||||||
maximumNumberOfDays: 10000,
|
maximumNumberOfDays: 3650,
|
||||||
symbol: "birthday-cake",
|
|
||||||
fullDaySymbol: "calendar-day",
|
|
||||||
recurringSymbol: "undo",
|
|
||||||
url: "http://localhost:8080/tests/configs/data/calendar_test_recurring.ics"
|
url: "http://localhost:8080/tests/configs/data/calendar_test_recurring.ics"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -82,11 +82,10 @@ describe("Calendar module", function () {
|
|||||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/calendar/recurring.js";
|
process.env.MM_CONFIG_FILE = "tests/configs/modules/calendar/recurring.js";
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should something correct", async () => {
|
it("should show the recurring birthday event 6 times", async () => {
|
||||||
// TODO add real test case
|
await app.client.waitUntilTextExists(".calendar", "Mar 25th", 10000);
|
||||||
await app.client.waitUntilTextExists(".calendar", "TestEvent", 10000);
|
|
||||||
const events = await app.client.$$(".calendar .event");
|
const events = await app.client.$$(".calendar .event");
|
||||||
return expect(events.length).equals(4);
|
return expect(events.length).equals(6);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user