mirror of https://github.com/nodejs/node.git
test: fix assert.strictEqual() parameter order in test-path-maklong.js
The argument order in the strictEqual check was in the wrong order. The first argument is now the actual value and the second argument is the expected value. PR-URL: https://github.com/nodejs/node/pull/23587 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
parent
c8986bb7a3
commit
c30658c11e
|
@ -29,17 +29,18 @@ if (common.isWindows) {
|
|||
const file = fixtures.path('a.js');
|
||||
const resolvedFile = path.resolve(file);
|
||||
|
||||
assert.strictEqual(`\\\\?\\${resolvedFile}`,
|
||||
path.toNamespacedPath(file));
|
||||
assert.strictEqual(`\\\\?\\${resolvedFile}`,
|
||||
path.toNamespacedPath(`\\\\?\\${file}`));
|
||||
assert.strictEqual('\\\\?\\UNC\\someserver\\someshare\\somefile',
|
||||
path.toNamespacedPath(
|
||||
'\\\\someserver\\someshare\\somefile'));
|
||||
assert.strictEqual('\\\\?\\UNC\\someserver\\someshare\\somefile', path
|
||||
.toNamespacedPath('\\\\?\\UNC\\someserver\\someshare\\somefile'));
|
||||
assert.strictEqual('\\\\.\\pipe\\somepipe',
|
||||
path.toNamespacedPath('\\\\.\\pipe\\somepipe'));
|
||||
assert.strictEqual(path.toNamespacedPath(file),
|
||||
`\\\\?\\${resolvedFile}`);
|
||||
assert.strictEqual(path.toNamespacedPath(`\\\\?\\${file}`),
|
||||
`\\\\?\\${resolvedFile}`);
|
||||
assert.strictEqual(path.toNamespacedPath(
|
||||
'\\\\someserver\\someshare\\somefile'),
|
||||
'\\\\?\\UNC\\someserver\\someshare\\somefile');
|
||||
assert.strictEqual(path.toNamespacedPath(
|
||||
'\\\\?\\UNC\\someserver\\someshare\\somefile'),
|
||||
'\\\\?\\UNC\\someserver\\someshare\\somefile');
|
||||
assert.strictEqual(path.toNamespacedPath('\\\\.\\pipe\\somepipe'),
|
||||
'\\\\.\\pipe\\somepipe');
|
||||
}
|
||||
|
||||
assert.strictEqual(path.toNamespacedPath(null), null);
|
||||
|
|
Loading…
Reference in New Issue