Skip to content

Commit 451918d

Browse files
RafaelGSSaduh95
andcommitted
fixup! use pathToFileURL
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 837acd3 commit 451918d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fixtures/permission/fs-write.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const regularFolder = process.env.ALLOWEDFOLDER;
1111
const regularFile = process.env.ALLOWEDFILE;
1212
const blockedFolder = process.env.BLOCKEDFOLDER;
1313
const blockedFile = process.env.BLOCKEDFILE;
14-
const blockedFileURL = new URL('file://' + process.env.BLOCKEDFILE);
14+
const blockedFileURL = require('url').pathToFileURL(process.env.BLOCKEDFILE);
1515
const relativeProtectedFile = process.env.RELATIVEBLOCKEDFILE;
1616
const relativeProtectedFolder = process.env.RELATIVEBLOCKEDFOLDER;
1717
const absoluteProtectedFile = path.resolve(relativeProtectedFile);

0 commit comments

Comments
 (0)