From a5f5b1494abee33e665f8a8402d8a854fa94216a Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Thu, 5 Dec 2024 23:52:44 +0100 Subject: [PATCH] better test --- packages/next-yak/runtime/__tests__/styled.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next-yak/runtime/__tests__/styled.test.tsx b/packages/next-yak/runtime/__tests__/styled.test.tsx index 335d39ee..02f847de 100644 --- a/packages/next-yak/runtime/__tests__/styled.test.tsx +++ b/packages/next-yak/runtime/__tests__/styled.test.tsx @@ -341,7 +341,7 @@ describe("dev mode - error tests", () => { it("should show the function body in error message when dynamic css function returns invalid value", () => { const Component = styled.div("cssClass", { style: { - "--bar": ({ $groupColor }) => $groupColor && css("color-class"), + "--bar": ({ $groupColor }) => $groupColor, }, }); @@ -354,7 +354,7 @@ describe("dev mode - error tests", () => { expect(error).toMatchInlineSnapshot(` [Error: Dynamic CSS functions must return a string or number but returned undefined - Dynamic CSS function: ({ $groupColor }) => $groupColor && __vite_ssr_import_4__.css("color-class") + Dynamic CSS function: ({ $groupColor }) => $groupColor ] `); });