Skip to content

Commit 2c103c1

Browse files
committed
fix tests
1 parent 29be409 commit 2c103c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/__tests__/components/Button.spec.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ describe("Button component", () => {
5959

6060
const icon = container.querySelector("i");
6161
expect(icon).toBeTruthy();
62-
expect(icon?.className).toContain("icon");
63-
expect(icon?.className).toContain("fa-test");
62+
expect(icon?.className).toContain("fas");
63+
expect(icon?.className).toContain("fa-keyboard");
6464
});
6565

6666
it("applies fa-fw class when text is missing", () => {
@@ -71,6 +71,7 @@ describe("Button component", () => {
7171
}}
7272
fa={{
7373
icon: "keyboard",
74+
fixedWidth: true,
7475
}}
7576
/>
7677
));

0 commit comments

Comments
 (0)