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) <noreply@anthropic.com>
This commit is contained in:
Georges-Antoine Assi
2026-07-19 22:21:16 -04:00
parent 05857c0148
commit edd36d83f4

View File

@@ -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",
);
});