Skip to content

Commit 7468e07

Browse files
committed
test: clarify dreaming diary label assertion
1 parent d22dccd commit 7468e07

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ui/src/ui/views/dreaming.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ describe("dreaming view", () => {
487487
const labels = [...container.querySelectorAll(".dreams-diary__day-chip")].map((node) =>
488488
node.textContent?.replace(/\s+/g, "").trim(),
489489
);
490-
expect(labels.filter(Boolean).some((label) => /^\d+\/\d+$/.test(label ?? ""))).toBe(true);
490+
expect(labels.filter((label): label is string => Boolean(label))).toEqual(
491+
expect.arrayContaining([expect.stringMatching(/^\d+\/\d+$/)]),
492+
);
491493
setDreamSubTab("scene");
492494
});
493495

0 commit comments

Comments
 (0)