mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
test(dashboard): type the module cases of the add-menu parity check
Refs #1085
This commit is contained in:
1 parent
69f19ec232
commit
d9dfa7e5db
1 file changed
+3
-2
@@ -148,13 +148,14 @@ describe("<DashboardHeader> — every entry follows its module, as the capture p
|
||||
});
|
||||
|
||||
it("offers exactly what the capture picker offers for the same modules", () => {
|
||||
for (const modules of [
|
||||
const cases: Array<Record<string, boolean> | undefined> = [
|
||||
undefined,
|
||||
{ mood: false },
|
||||
{ medications: false },
|
||||
{ workouts: false },
|
||||
{ mood: false, medications: false, workouts: false },
|
||||
]) {
|
||||
];
|
||||
for (const modules of cases) {
|
||||
modulesRef.value = modules;
|
||||
const html = renderSSR(
|
||||
<DashboardHeader onQuickEntry={() => undefined} />,
|
||||
|
||||
Reference in new issue
Block a user