fix also windows

pull/2350/head
Mikael Finstad 1 year ago
parent 2503128fb6
commit b4a8f4c7fe
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -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 {

Loading…
Cancel
Save