Skip to content

The swiss army knife of lossless video/audio editing

fix another test on windows

Mikael Finstad65410eab5467
diff --git a/src/main/pathToFileURL.test.ts b/src/main/pathToFileURL.test.ts
index 9ccae541..212b1e39 100644
--- a/src/main/pathToFileURL.test.ts
+++ b/src/main/pathToFileURL.test.ts
@@ -25,7 +25,7 @@ describe('file uri both platforms', () => {
test('converts path to file url', () => {
expect(pathToFileURL('/test.jpg').href).toMatch(/^file:\/{3}.*test\.jpg$/);
- expect(pathToFileURL('/Users/sindresorhus/dev/te^st.jpg').href).toEqual('file:///Users/sindresorhus/dev/te^st.jpg');
+ expect(pathToFileURL('/Users/sindresorhus/dev/te^st.jpg').href).toMatch(/^file:\/{2}.*\/Users\/sindresorhus\/dev\/te\^st\.jpg$/);
});
test('escapes more special characters in path', () => {