From 2df31e4edbe48bfd58a30cb4019fb4da0a4ba3e2 Mon Sep 17 00:00:00 2001 From: NriotHrreion Date: Sun, 25 Aug 2024 16:20:59 +0800 Subject: [PATCH] test: Fix button tests failure --- src/ui/button/button.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/button/button.test.ts b/src/ui/button/button.test.ts index d15d206..4c5c478 100644 --- a/src/ui/button/button.test.ts +++ b/src/ui/button/button.test.ts @@ -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", () => {