mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
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:
@@ -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",
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user