Resolve errors and pass tests

This commit is contained in:
adilallo committed 2026-02-04 14:15:22 -07:00
1 parent 0ebad759f9
commit 97e2680c57
7 files changed
+15 -36

No files matched your search

+3 -1
View File
@@ -188,9 +188,10 @@ describe("NumberCard Component", () => {
it("applies Small size variant correctly", () => {
render(<NumberCard {...defaultProps} size="Small" />);
// For Small size, text is directly in card div (no wrapper), so use closest("div")
const card = screen
.getByText("Test Card Text")
.closest("div").parentElement;
.closest("div");
expect(card).toHaveClass(
"flex",
"flex-col",
@@ -198,6 +199,7 @@ describe("NumberCard Component", () => {
"justify-center",
"gap-4",
"p-5",
"relative",
);
const textElement = screen.getByText("Test Card Text");