From 5090c89d20338415274e3c6e1e86dcd8cf8648db Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 2 Nov 2026 15:35:58 -0500 Subject: [PATCH] fix: the backup panel test reads the music sizes as formatBytes prints them Co-Authored-By: Claude Opus 5.5 --- web/src/lib/components/admin/BackupPanel.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/lib/components/admin/BackupPanel.test.ts b/web/src/lib/components/admin/BackupPanel.test.ts index b95a750e..cc6750d7 100644 --- a/web/src/lib/components/admin/BackupPanel.test.ts +++ b/web/src/lib/components/admin/BackupPanel.test.ts @@ -201,10 +201,10 @@ describe('BackupPanel', () => { }) ); const music = screen.getByTestId('backup-music').textContent?.replace(/\s+/g, ' ') ?? ''; - expect(music).toMatch(/4 of 10 files backed up · 120\.0 MB of 300\.0 MB/); + expect(music).toMatch(/4 of 10 files backed up · 120 MB of 300 MB/); expect(music).toMatch(/The rest goes with the next backups\./); const runs = screen.getByRole('list', { name: /latest backups/i }).textContent?.replace(/\s+/g, ' ') ?? ''; - expect(runs).toMatch(/Music: 4 files · 120\.0 MB/); + expect(runs).toMatch(/Music: 4 files · 120 MB/); expect(runs).toMatch(/carries on with the next backup/); });