Skip to content

Commit

Permalink
test: Fix button tests failure
Browse files Browse the repository at this point in the history
  • Loading branch information
NriotHrreion committed Aug 25, 2024
1 parent 5fe6638 commit 2df31e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/button/button.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ describe("button-component-tests", () => {
const button = new Button("Test");

it("button-properties", () => {
expect(button.text).toBe("test");
expect(button.element.className).toStrictEqual("button");
expect(button.text).toBe("Test");
expect(Array.from(button.element.classList)).toStrictEqual(["button", "button-primary"]);
});

it("button-click", () => {
Expand Down

0 comments on commit 2df31e4

Please sign in to comment.