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.
This commit is contained in:
Maurice
2026-07-29 10:31:41 +02:00
committed by Maurice
parent 02ad6c3d16
commit 99816bff4c
@@ -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;')