From 65410eab546749389f49db6fcab84a7d6f6b253d Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Wed, 3 Apr 2024 23:24:48 +0200 Subject: [PATCH] fix another test on windows --- src/main/pathToFileURL.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/pathToFileURL.test.ts b/src/main/pathToFileURL.test.ts index 9ccae54..212b1e3 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', () => {