Skip to content

The swiss army knife of lossless video/audio editing

fix also windows

Mikael Finstadb4a8f4c7fec7
diff --git a/src/main/pathToFileURL.test.ts b/src/main/pathToFileURL.test.ts
index 17b3b895..3a6817bd 100644
--- a/src/main/pathToFileURL.test.ts
+++ b/src/main/pathToFileURL.test.ts
@@ -8,7 +8,7 @@ import { pathToFileURL } from 'node:url';
if (process.platform === 'win32') {
describe('file uri windows only', () => {
test('converts path to file url', () => {
- expect(pathToFileURL('C:\\Users\\sindresorhus\\dev\\te^st.jpg').href).toEqual('file:///C:/Users/sindresorhus/dev/te^st.jpg');
+ expect(pathToFileURL('C:\\Users\\sindresorhus\\dev\\te^st.jpg').href).toEqual('file:///C:/Users/sindresorhus/dev/te%5Est.jpg');
});
});
} else {