Split randomizer views and align NDS toolbox vocabulary
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
This commit is contained in:
parent
6b85e58765
commit
fef7735a1d
57 changed files with 4932 additions and 4815 deletions
|
|
@ -243,13 +243,21 @@ test("toolbox module registry and modules expose expected behavior", async () =>
|
|||
const textImportPlanning = await readFile("website/src/features/toolboxes/modules/textImport/planning.js", "utf8");
|
||||
const textImportTime = await readFile("website/src/features/toolboxes/modules/textImport/time.js", "utf8");
|
||||
const imageViewer = await readFile("website/src/components/ImageViewer.jsx", "utf8");
|
||||
const randomizerModule = await readFile("website/src/features/toolboxes/modules/RandomizerModule.jsx", "utf8");
|
||||
const randomizerDice = await readFile("website/src/features/toolboxes/modules/randomizer/RandomizerDice.jsx", "utf8");
|
||||
const randomizerWheel = await readFile("website/src/features/toolboxes/modules/randomizer/RandomizerWheel.jsx", "utf8");
|
||||
const randomizerTeams = await readFile("website/src/features/toolboxes/modules/randomizer/RandomizerTeams.jsx", "utf8");
|
||||
const randomizerShared = await readFile("website/src/features/toolboxes/modules/randomizer/RandomizerShared.jsx", "utf8");
|
||||
const randomizerUiUtils = await readFile("website/src/features/toolboxes/modules/randomizer/randomizerUiUtils.js", "utf8");
|
||||
const randomizerBundle = `${randomizerModule}\n${randomizerDice}\n${randomizerWheel}\n${randomizerTeams}\n${randomizerShared}\n${randomizerUiUtils}`;
|
||||
|
||||
[
|
||||
["CalendarModule.jsx", calendarModule],
|
||||
["modules/index.jsx", moduleRegistry],
|
||||
["GoalTreeParts.jsx", goalTreeParts],
|
||||
["TimerParts.jsx", timerParts],
|
||||
["TaskPlannerItems.jsx", taskPlannerItems]
|
||||
["TaskPlannerItems.jsx", taskPlannerItems],
|
||||
["RandomizerModule.jsx", randomizerModule]
|
||||
].forEach(([fileName, fileSource]) => {
|
||||
assert.ok(countLines(fileSource) <= 220, `${fileName} must remain a short orchestrator/barrel`);
|
||||
});
|
||||
|
|
@ -358,6 +366,19 @@ test("toolbox module registry and modules expose expected behavior", async () =>
|
|||
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"/);
|
||||
assert.match(moduleMetadataRegistry, /defaultTitle: "Bloc Note"/);
|
||||
assert.match(randomizerModule, /RandomizerDice\.jsx/);
|
||||
assert.match(randomizerModule, /RandomizerWheel\.jsx/);
|
||||
assert.match(randomizerModule, /RandomizerTeams\.jsx/);
|
||||
assert.match(randomizerDice, /export function DiceRandomizer/);
|
||||
assert.match(randomizerWheel, /export function WheelRandomizer/);
|
||||
assert.match(randomizerTeams, /export function TeamsRandomizer/);
|
||||
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/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue