Refactor checklist module structure
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
f2c88ee891
commit
ed710b3399
5 changed files with 396 additions and 352 deletions
|
|
@ -178,6 +178,9 @@ test("toolbox module registry and modules expose expected behavior", async () =>
|
|||
const equipmentPlannerSummary = await readFile("website/src/features/toolboxes/modules/EquipmentPlannerSummary.jsx", "utf8");
|
||||
const equipmentPlannerOptions = await readFile("website/src/features/toolboxes/modules/equipmentPlannerOptions.js", "utf8");
|
||||
const checklistModule = await readFile("website/src/features/toolboxes/modules/ChecklistModule.jsx", "utf8");
|
||||
const checklistParts = await readFile("website/src/features/toolboxes/modules/ChecklistParts.jsx", "utf8");
|
||||
const checklistUtils = await readFile("website/src/features/toolboxes/modules/checklistUtils.js", "utf8");
|
||||
const checklistBundle = `${checklistModule}\n${checklistParts}\n${checklistUtils}`;
|
||||
const imagesModule = await readFile("website/src/features/toolboxes/modules/ImagesModule.jsx", "utf8");
|
||||
const imageAnnotationModule = await readFile("website/src/features/toolboxes/modules/ImageAnnotationModule.jsx", "utf8");
|
||||
const linksModule = await readFile("website/src/features/toolboxes/modules/LinksModule.jsx", "utf8");
|
||||
|
|
@ -437,21 +440,21 @@ test("toolbox module registry and modules expose expected behavior", async () =>
|
|||
assert.match(checklistModule, /export function ChecklistModule/);
|
||||
assert.match(checklistModule, /TextExchangeActions/);
|
||||
assert.match(checklistModule, /editing &&/);
|
||||
assert.match(checklistModule, /ChecklistItem/);
|
||||
assert.match(checklistModule, /ChecklistSection/);
|
||||
assert.match(checklistModule, /chevron-down/);
|
||||
assert.match(checklistModule, /chevron-up/);
|
||||
assert.match(checklistModule, /checklist-qty-current/);
|
||||
assert.match(checklistModule, /checklist-delete-button danger/);
|
||||
assert.match(checklistParts, /ChecklistItem/);
|
||||
assert.match(checklistParts, /export function ChecklistSection/);
|
||||
assert.match(checklistParts, /chevron-down/);
|
||||
assert.match(checklistParts, /chevron-up/);
|
||||
assert.match(checklistParts, /checklist-qty-current/);
|
||||
assert.match(checklistParts, /checklist-delete-button danger/);
|
||||
assert.match(checklistModule, /useGroupedReorder/);
|
||||
assert.match(checklistModule, /getItemProps/);
|
||||
assert.match(checklistModule, /getGroupProps/);
|
||||
assert.match(checklistBundle, /getItemProps/);
|
||||
assert.match(checklistParts, /getGroupProps/);
|
||||
assert.match(checklistModule, /getGroupBoundaryProps/);
|
||||
assert.match(checklistModule, /checklist-category-boundary-drop-zone/);
|
||||
assert.match(checklistModule, /itemReorder\.startDrag/);
|
||||
assert.match(checklistModule, /groupReorder\.startDrag/);
|
||||
assert.match(checklistModule, /useInlineEdit/);
|
||||
assert.match(checklistModule, /moveChecklistItemToCategory/);
|
||||
assert.match(checklistParts, /itemReorder\.startDrag/);
|
||||
assert.match(checklistParts, /groupReorder\.startDrag/);
|
||||
assert.match(checklistParts, /useInlineEdit/);
|
||||
assert.match(checklistUtils, /export function moveChecklistItemToCategory/);
|
||||
assert.match(textImportModal, /createPortal/);
|
||||
assert.match(textImportModal, /lockBodyScroll/);
|
||||
assert.match(textImportModal, /has-error/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue