Skip to content

Commit 07a6567

Browse files
authored
I'll squash all of this
1 parent e8d4d6f commit 07a6567

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-url-pathtofileurl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const url = require('url');
6161
}
6262
}
6363

64-
let windowsTestCases = [
64+
const windowsTestCases = [
6565
// Lowercase ascii alpha
6666
{ path: 'C:\\foo', expected: 'file:///C:/foo' },
6767
// Uppercase ascii alpha
@@ -107,7 +107,7 @@ let windowsTestCases = [
107107
// UNC path (see https://docs.microsoft.com/en-us/archive/blogs/ie/file-uris-in-windows)
108108
{ path: '\\\\nas\\My Docs\\File.doc', expected: 'file://nas/My%20Docs/File.doc' },
109109
];
110-
let posixTestCases = [
110+
const posixTestCases = [
111111
// Lowercase ascii alpha
112112
{ path: '/foo', expected: 'file:///foo' },
113113
// Uppercase ascii alpha
@@ -162,7 +162,7 @@ for (const { path, expected } of posixTestCases) {
162162
assert.strictEqual(actual, expected);
163163
}
164164

165-
let testCases = isWindows ? windowsTestCases : posixTestCases;
165+
const testCases = isWindows ? windowsTestCases : posixTestCases;
166166

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

0 commit comments

Comments
 (0)