We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d22dccd commit 7468e07Copy full SHA for 7468e07
1 file changed
ui/src/ui/views/dreaming.test.ts
@@ -487,7 +487,9 @@ describe("dreaming view", () => {
487
const labels = [...container.querySelectorAll(".dreams-diary__day-chip")].map((node) =>
488
node.textContent?.replace(/\s+/g, "").trim(),
489
);
490
- expect(labels.filter(Boolean).some((label) => /^\d+\/\d+$/.test(label ?? ""))).toBe(true);
+ expect(labels.filter((label): label is string => Boolean(label))).toEqual(
491
+ expect.arrayContaining([expect.stringMatching(/^\d+\/\d+$/)]),
492
+ );
493
setDreamSubTab("scene");
494
});
495
0 commit comments