Skip to content

Commit

Permalink
I'll squash all of this
Browse files Browse the repository at this point in the history
  • Loading branch information
avivkeller authored Apr 17, 2024
1 parent e8d4d6f commit 07a6567
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-url-pathtofileurl.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const url = require('url');
}
}

let windowsTestCases = [
const windowsTestCases = [
// Lowercase ascii alpha
{ path: 'C:\\foo', expected: 'file:///C:/foo' },
// Uppercase ascii alpha
Expand Down Expand Up @@ -107,7 +107,7 @@ let windowsTestCases = [
// UNC path (see https://docs.microsoft.com/en-us/archive/blogs/ie/file-uris-in-windows)
{ path: '\\\\nas\\My Docs\\File.doc', expected: 'file://nas/My%20Docs/File.doc' },
];
let posixTestCases = [
const posixTestCases = [
// Lowercase ascii alpha
{ path: '/foo', expected: 'file:///foo' },
// Uppercase ascii alpha
Expand Down Expand Up @@ -162,7 +162,7 @@ for (const { path, expected } of posixTestCases) {
assert.strictEqual(actual, expected);
}

let testCases = isWindows ? windowsTestCases : posixTestCases;
const testCases = isWindows ? windowsTestCases : posixTestCases;

for (const { path, expected } of testCases) {
const actual = url.pathToFileURL(path).href;
Expand Down

0 comments on commit 07a6567

Please sign in to comment.