From 1877c4b340191908d48be9a6d23ddf85804290ab Mon Sep 17 00:00:00 2001 From: bchanot Date: Wed, 21 Oct 2026 15:50:24 +0200 Subject: [PATCH] test(ui): footer image test refuses protocol-relative sources --- apps/app/tests/unit/components.Footer.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app/tests/unit/components.Footer.test.tsx b/apps/app/tests/unit/components.Footer.test.tsx index a270cf31..a9efb233 100644 --- a/apps/app/tests/unit/components.Footer.test.tsx +++ b/apps/app/tests/unit/components.Footer.test.tsx @@ -11,7 +11,7 @@ describe('Footer', () => { const sources = screen.getAllByRole('img').map((img) => img.getAttribute('src')) expect(sources).toHaveLength(2) for (const src of sources) { - expect(src).toMatch(/^\/|^data:|^blob:/) + expect(src).toMatch(/^\/(?!\/)|^data:|^blob:/) expect(src).not.toMatch(/^https?:/) } })