Fixing things for nox to work.

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-10-08 22:29:26 -04:00
parent 5158acd1ea
commit 9886f8cdaa
3 changed files with 5 additions and 5 deletions

View File

@@ -209,10 +209,10 @@ describe("BookingList", () => {
minute: "2-digit",
hour12: true,
})}`;
const item = screen.getByText(expected).closest(".bookinglist-item");
const item = screen.getByText(expected).closest(".booking-list-item");
expect(item).toBeTruthy();
if (item) {
(item as globalThis.HTMLElement).click();
(item as HTMLElement).click();
expect(onSelect).toHaveBeenCalledWith(expect.objectContaining({ id: 2 }));
}
});

View File

@@ -28,8 +28,8 @@ describe("RoomList", () => {
"aria-label",
expect.stringContaining("Beta Room")
);
// Check for font weight style (bold)
expect(selected.innerHTML).toMatch(/font-weight: 700/);
// Check for selected class (bold/highlighted)
expect(selected.className).toMatch(/room-list-item-selected/);
});
it("renders secondary text for room details", () => {

View File

@@ -14,7 +14,7 @@ describe("booking helpers", () => {
start_time: rollingIso(1),
end_time: rollingIso(2),
})
).toBe(42);
).toBe("42");
expect(getEditBookingRoomId(null)).toBe("");
});