Cover calculator hierarchy and result workflows
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
This commit is contained in:
parent
7b160bac9c
commit
a4268dac54
4 changed files with 114 additions and 26 deletions
|
|
@ -106,9 +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 calculatorEntries = await readFile("website/src/features/toolboxes/modules/CalculatorEntries.jsx", "utf8");
|
||||
const calculatorUtils = await readFile("website/src/features/toolboxes/modules/calculatorUtils.js", "utf8");
|
||||
const calculatorBundle = `${calculatorModule}\n${calculatorEntries}\n${calculatorUtils}`;
|
||||
const tableModule = await readFile("website/src/features/toolboxes/modules/TableModule.jsx", "utf8");
|
||||
const tableGrid = await readFile("website/src/features/toolboxes/modules/TableGrid.jsx", "utf8");
|
||||
const tableGridParts = await readFile("website/src/features/toolboxes/modules/TableGridParts.jsx", "utf8");
|
||||
|
|
@ -276,12 +273,6 @@ test("toolbox module registry and modules expose expected behavior", async () =>
|
|||
assert.match(combosBundle, /setItemGroup: setComboItemCategory/);
|
||||
assert.doesNotMatch(combosModule, /canMoveItem:/);
|
||||
assert.doesNotMatch(combosModule, /canMoveGroup:/);
|
||||
assert.match(calculatorModule, /export function CalculatorModule/);
|
||||
assert.match(calculatorUtils, /export function calculateExpression/);
|
||||
assert.match(calculatorModule, /activeParentId/);
|
||||
assert.match(calculatorModule, /parentId/);
|
||||
assert.match(calculatorModule, /MixTagsInput/);
|
||||
assert.match(calculatorModule, /useGroupedReorder/);
|
||||
assert.match(moduleMetadataRegistry, /label: "Mémos"/);
|
||||
assert.match(moduleMetadataRegistry, /defaultTitle: "Mémos"/);
|
||||
assert.match(moduleMetadataRegistry, /label: "Bloc Note"/);
|
||||
|
|
@ -295,25 +286,8 @@ test("toolbox module registry and modules expose expected behavior", async () =>
|
|||
assert.match(randomizerShared, /export function RandomizerHistory/);
|
||||
assert.match(randomizerUiUtils, /export function hasReducedMotion/);
|
||||
assert.match(randomizerBundle, /type="randomizer"/);
|
||||
assert.match(calculatorEntries, /calculator-drag-handle/);
|
||||
assert.match(calculatorModule, /scrollResults/);
|
||||
assert.match(calculatorModule, /tool-split-scroll-toggle/);
|
||||
assert.match(calculatorModule, /copyChecklistImport/);
|
||||
assert.match(calculatorModule, /resetCalculator/);
|
||||
assert.match(calculatorModule, /returnToRoot/);
|
||||
assert.match(calculatorModule, /createChildEntry/);
|
||||
assert.match(calculatorModule, /const childId = context\.uid\("calc"\)/);
|
||||
assert.match(calculatorModule, /parentId: entry\.id/);
|
||||
assert.match(calculatorModule, /formula: BASE_TOKEN/);
|
||||
assert.match(calculatorModule, /pendingExpressionFocusRef/);
|
||||
assert.match(calculatorModule, /setExpression\(BASE_TOKEN\)/);
|
||||
assert.match(calculatorModule, /editingEntryId/);
|
||||
assert.match(calculatorModule, /updateButton/);
|
||||
assert.match(calculatorEntries, /onAddChild/);
|
||||
assert.match(calculatorEntries, /entry\.label \|\| formatResult\(entry\.value\)/);
|
||||
assert.match(calculatorModule, /ResizeObserver/);
|
||||
assert.match(calculatorModule, /--calculator-scroll-height/);
|
||||
assert.match(calculatorBundle, /CalculatorEntries/);
|
||||
assert.match(tableModule, /export function TableModule/);
|
||||
assert.match(tableBundle, /Icon name="add-row"/);
|
||||
assert.match(tableBundle, /Icon name="add-column"/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue