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 file = fixtures.path('a.js');
|
||||||
const resolvedFile = path.resolve(file);
|
const resolvedFile = path.resolve(file);
|
||||||
|
|
||||||
assert.strictEqual(`\\\\?\\${resolvedFile}`,
|
assert.strictEqual(path.toNamespacedPath(file),
|
||||||
path.toNamespacedPath(file));
|
`\\\\?\\${resolvedFile}`);
|
||||||
assert.strictEqual(`\\\\?\\${resolvedFile}`,
|
assert.strictEqual(path.toNamespacedPath(`\\\\?\\${file}`),
|
||||||
path.toNamespacedPath(`\\\\?\\${file}`));
|
`\\\\?\\${resolvedFile}`);
|
||||||
assert.strictEqual('\\\\?\\UNC\\someserver\\someshare\\somefile',
|
assert.strictEqual(path.toNamespacedPath(
|
||||||
path.toNamespacedPath(
|
'\\\\someserver\\someshare\\somefile'),
|
||||||
'\\\\someserver\\someshare\\somefile'));
|
'\\\\?\\UNC\\someserver\\someshare\\somefile');
|
||||||
assert.strictEqual('\\\\?\\UNC\\someserver\\someshare\\somefile', path
|
assert.strictEqual(path.toNamespacedPath(
|
||||||
.toNamespacedPath('\\\\?\\UNC\\someserver\\someshare\\somefile'));
|
'\\\\?\\UNC\\someserver\\someshare\\somefile'),
|
||||||
assert.strictEqual('\\\\.\\pipe\\somepipe',
|
'\\\\?\\UNC\\someserver\\someshare\\somefile');
|
||||||
path.toNamespacedPath('\\\\.\\pipe\\somepipe'));
|
assert.strictEqual(path.toNamespacedPath('\\\\.\\pipe\\somepipe'),
|
||||||
|
'\\\\.\\pipe\\somepipe');
|
||||||
}
|
}
|
||||||
|
|
||||||
assert.strictEqual(path.toNamespacedPath(null), null);
|
assert.strictEqual(path.toNamespacedPath(null), null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user