瀏覽代碼

Fix unit tests

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Mihaela Balutoiu 1 年之前
父節點
當前提交
146ec439df
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/components/ui/Button/Button.spec.tsx
  2. 1 1
      src/components/ui/TextInput/TextInput.spec.tsx

+ 1 - 1
src/components/ui/Button/Button.spec.tsx

@@ -37,7 +37,7 @@ describe("Button", () => {
         window.getComputedStyle(document.querySelector("button")!)
         window.getComputedStyle(document.querySelector("button")!)
           .backgroundColor
           .backgroundColor
       )
       )
-    ).toBe(ThemePalette.grayscale[8]);
+    ).toBe(ThemePalette.secondaryLight);
   });
   });
 
 
   it("fires click", () => {
   it("fires click", () => {

+ 1 - 1
src/components/ui/TextInput/TextInput.spec.tsx

@@ -32,7 +32,7 @@ describe("TextInput", () => {
       window
       window
         .getComputedStyle(TestUtils.select("TextInput__Input")!)
         .getComputedStyle(TestUtils.select("TextInput__Input")!)
         .borderColor.toUpperCase();
         .borderColor.toUpperCase();
-    expect(getBorderColor()).toBe(ThemePalette.primary);
+    expect(getBorderColor()).toBe(ThemePalette.grayscale[3].toUpperCase());
 
 
     rerender(<TextInput highlight />);
     rerender(<TextInput highlight />);
     expect(getBorderColor()).toBe(ThemePalette.alert);
     expect(getBorderColor()).toBe(ThemePalette.alert);