Cover shared text import and export workflows
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s

This commit is contained in:
Shinuwa 2026-09-17 18:19:52 +02:00
parent e3bc4ae3c9
commit 4eb4816937
4 changed files with 101 additions and 15 deletions

View file

@ -106,7 +106,6 @@ test("toolbox module registry and modules expose expected behavior", async () =>
const combosBundle = `${combosModule}\n${combosEditor}\n${combosParts}\n${combosList}\n${combosEditorState}\n${combosReorder}`;
const combosUtils = await readFile("website/src/features/toolboxes/modules/combosUtils.js", "utf8");
const calculatorModule = await readFile("website/src/features/toolboxes/modules/CalculatorModule.jsx", "utf8");
const tableModule = await readFile("website/src/features/toolboxes/modules/TableModule.jsx", "utf8");
const tableFormulaEngine = await readFile("website/src/features/toolboxes/modules/tableFormulaEngine.js", "utf8");
const timerModule = await readFile("website/src/features/toolboxes/modules/TimerModule.jsx", "utf8");
const timerCountdown = await readFile("website/src/features/toolboxes/modules/TimerCountdown.jsx", "utf8");
@ -165,9 +164,6 @@ test("toolbox module registry and modules expose expected behavior", async () =>
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");
const textImportModal = await readFile("website/src/features/toolboxes/modules/TextImportModal.jsx", "utf8");
const textExchangeActions = await readFile("website/src/features/toolboxes/modules/TextExchangeActions.jsx", "utf8");
const textExchangeHook = await readFile("website/src/features/toolboxes/modules/useTextExchange.js", "utf8");
const countersModule = await readFile("website/src/features/toolboxes/modules/CountersModule.jsx", "utf8");
const textImport = await readFile("website/src/features/toolboxes/modules/textImport.js", "utf8");
const textImportShared = await readFile("website/src/features/toolboxes/modules/textImport/shared.js", "utf8");
@ -281,7 +277,6 @@ test("toolbox module registry and modules expose expected behavior", async () =>
assert.match(randomizerBundle, /type="randomizer"/);
assert.match(calculatorModule, /ResizeObserver/);
assert.match(calculatorModule, /--calculator-scroll-height/);
assert.match(tableModule, /TextExchangeActions/);
assert.match(tableFormulaEngine, /export function evaluateTableCell/);
assert.doesNotMatch(tableFormulaEngine, /Function\(/);
assert.doesNotMatch(tableFormulaEngine, /\beval\(/);
@ -418,16 +413,6 @@ test("toolbox module registry and modules expose expected behavior", async () =>
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/);
assert.match(textExchangeActions, /export function TextExchangeActions/);
assert.match(textExchangeActions, /Icon name="import"/);
assert.match(textExchangeActions, /Icon name="export"/);
assert.match(textExchangeActions, /useTextExchange/);
assert.match(textExchangeHook, /export function useTextExchange/);
assert.match(textExchangeHook, /importModuleText/);
assert.match(textExchangeHook, /exportModuleText/);
assert.match(imagesModule, /export function ImagesModule/);
assert.match(imagesModule, /useGroupedReorder/);
assert.match(imagesModule, /orientation: "horizontal"/);