Skip to content
Browse files

test: improve path tests

Replaced deepStrictEqual with strictEqual when asserting that the
path is equal to the win32 or posix equivalent, since it is a more
strict check than deepStrictCheck. Also removed third argument
in the check so that if there is an assertion error the properties
that are different will be displayed.

PR-URL: #20967
Reviewed-By: Colin Ihrig <>
Reviewed-By: Rich Trott <>
Reviewed-By: Luigi Pinca <>
Reviewed-By: Ujjwal Sharma <>
Reviewed-By: Ruben Bridgewater <>
Reviewed-By: Trivikram Kamat <>
Reviewed-By: James M Snell <>
  • Loading branch information
Shivang44 authored and apapirovski committed Jun 1, 2018
1 parent cf72301 commit f49bd39cdefce968793c8891774df7a02f67b5ac
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-path.js
@@ -68,6 +68,6 @@ assert.strictEqual(path.win32.delimiter, ';');
assert.strictEqual(path.posix.delimiter, ':');

if (common.isWindows)
assert.deepStrictEqual(path, path.win32, 'should be win32 path module');
assert.strictEqual(path, path.win32);
assert.deepStrictEqual(path, path.posix, 'should be posix path module');
assert.strictEqual(path, path.posix);

0 comments on commit f49bd39

Please sign in to comment.