From 99816bff4cf782172559420e99a369ea5956d05d Mon Sep 17 00:00:00 2001 From: Maurice Date: Wed, 29 Jul 2026 10:31:41 +0200 Subject: [PATCH] test(costs): escape the BOM in the CSV export assertion A literal U+FEFF inside a regex trips no-irregular-whitespace, which is an error rather than a warning, so the client lint job failed. The escape is equivalent. --- client/src/components/Budget/CostsPanel.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Budget/CostsPanel.test.tsx b/client/src/components/Budget/CostsPanel.test.tsx index 825b39f35..19e1b2686 100644 --- a/client/src/components/Budget/CostsPanel.test.tsx +++ b/client/src/components/Budget/CostsPanel.test.tsx @@ -1274,7 +1274,7 @@ describe('CostsPanel — remaining paths', () => { await screen.findByText('Tip') fireEvent.click(screen.getByTitle('Export CSV')) - const lines = (await exported!.text()).replace(/^/, '').split('\r\n') + const lines = (await exported!.text()).replace(/^\uFEFF/, '').split('\r\n') expect(lines[0]).toBe('Date;Name;Category;Amount;Currency;Amount (EUR);Note') // Oldest first, dateless rows leading. expect(lines[1]).toBe(';Tip;Tips;5.00;EUR;5.00;')