From edd36d83f42675f762f24efc4aa96b80778f5a64 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sun, 19 Jul 2026 22:21:16 -0400 Subject: [PATCH] test: expect URL-encoded path segment for selected file The greptile suggestion added encodeURIComponent to the selected file name in getDownloadPath, but the test still expected a literal space. Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/src/utils/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/index.test.ts b/frontend/src/utils/index.test.ts index 8acfb8f74..840c68f15 100644 --- a/frontend/src/utils/index.test.ts +++ b/frontend/src/utils/index.test.ts @@ -32,7 +32,7 @@ describe("getDownloadPath", () => { ] as SimpleRom["files"], }); expect(getDownloadPath({ rom, fileIDs: [29] })).toBe( - "/api/roms/24/content/B.A.T. Disk1.adf?file_ids=29", + "/api/roms/24/content/B.A.T.%20Disk1.adf?file_ids=29", ); });