mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-09 17:45:35 -04:00
Fixing things for nox to work.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
@@ -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 }));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
@@ -14,7 +14,7 @@ describe("booking helpers", () => {
|
||||
start_time: rollingIso(1),
|
||||
end_time: rollingIso(2),
|
||||
})
|
||||
).toBe(42);
|
||||
).toBe("42");
|
||||
expect(getEditBookingRoomId(null)).toBe("");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user