Extract calendar draft helpers
All checks were successful
Deploy Sokko G / deploy (push) Successful in 15s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 15s
This commit is contained in:
parent
d9bbf40fad
commit
f2c88ee891
4 changed files with 110 additions and 65 deletions
|
|
@ -155,9 +155,10 @@ test("toolbox module registry and modules expose expected behavior", async () =>
|
|||
const timerParts = await readFile("website/src/features/toolboxes/modules/TimerParts.jsx", "utf8");
|
||||
const timerOptions = await readFile("website/src/features/toolboxes/modules/timerOptions.js", "utf8");
|
||||
const calendarModule = await readFile("website/src/features/toolboxes/modules/CalendarModule.jsx", "utf8");
|
||||
const calendarDraft = await readFile("website/src/features/toolboxes/modules/calendarDraft.js", "utf8");
|
||||
const calendarEventForm = await readFile("website/src/features/toolboxes/modules/CalendarEventForm.jsx", "utf8");
|
||||
const calendarViews = await readFile("website/src/features/toolboxes/modules/CalendarViews.jsx", "utf8");
|
||||
const calendarBundle = `${calendarModule}\n${calendarEventForm}\n${calendarViews}`;
|
||||
const calendarBundle = `${calendarModule}\n${calendarDraft}\n${calendarEventForm}\n${calendarViews}`;
|
||||
const calendarUtils = await readFile("website/src/features/toolboxes/modules/calendarUtils.js", "utf8");
|
||||
const taskPlannerModule = await readFile("website/src/features/toolboxes/modules/TaskPlannerModule.jsx", "utf8");
|
||||
const taskPlannerItems = await readFile("website/src/features/toolboxes/modules/TaskPlannerItems.jsx", "utf8");
|
||||
|
|
@ -354,6 +355,9 @@ test("toolbox module registry and modules expose expected behavior", async () =>
|
|||
assert.match(calendarModule, /type="calendar"/);
|
||||
assert.match(calendarBundle, /repeatLabel/);
|
||||
assert.match(calendarBundle, /CalendarAlertModeSwitch/);
|
||||
assert.match(calendarDraft, /export function createDefaultDraft/);
|
||||
assert.match(calendarDraft, /export function getDraftSelection/);
|
||||
assert.match(calendarDraft, /export function normalizeDraftAlertOffsets/);
|
||||
assert.doesNotMatch(moduleRegistry, /calendarInitOpen/);
|
||||
assert.doesNotMatch(moduleRegistry, /calendar-init-modal/);
|
||||
assert.match(calendarUtils, /export function getCalendarOccurrences/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue