From ed47fdc3a3897687c6d29a446c59233895847728 Mon Sep 17 00:00:00 2001 From: Lukasz Mierzwa Date: Mon, 9 Mar 2026 15:30:24 +0000 Subject: [PATCH] fix(backend): fix go tests after .env removal --- cmd/karma/assets_test.go | 8 ++++---- ui/mock/custom_assets.txt | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 ui/mock/custom_assets.txt diff --git a/cmd/karma/assets_test.go b/cmd/karma/assets_test.go index 41c983df6..8cd38d6dd 100644 --- a/cmd/karma/assets_test.go +++ b/cmd/karma/assets_test.go @@ -47,17 +47,17 @@ func TestCustomizationAssets(t *testing.T) { mime: "text/plain; charset=utf-8", }, { - customJS: "../../ui/.env", + customJS: "../../ui/mock/custom_assets.txt", path: "/custom.js", code: 200, - body: "PUBLIC_URL=.\nFAST_REFRESH=false\nSKIP_PREFLIGHT_CHECK=true\n", + body: "custom assets fixture\n", mime: "application/javascript", }, { - customCSS: "../../ui/.env", + customCSS: "../../ui/mock/custom_assets.txt", path: "/custom.css", code: 200, - body: "PUBLIC_URL=.\nFAST_REFRESH=false\nSKIP_PREFLIGHT_CHECK=true\n", + body: "custom assets fixture\n", mime: "text/css", }, } diff --git a/ui/mock/custom_assets.txt b/ui/mock/custom_assets.txt new file mode 100644 index 000000000..c3c558a30 --- /dev/null +++ b/ui/mock/custom_assets.txt @@ -0,0 +1 @@ +custom assets fixture