Skip to content
Browse files

test: remove third param from assert.strictEqual

Removing third argument in calls to assert.strictEqual() so that the
values of the first two arguments are shown instead as this is more
useful for debugging.


PR-URL: #19536
Reviewed-By: Colin Ihrig <>
Reviewed-By: Luigi Pinca <>
Reviewed-By: Rich Trott <>
Reviewed-By: Richard Lau <>
Reviewed-By: James M Snell <>
Reviewed-By: Trivikram Kamat <>
Reviewed-By: Franziska Hinkelmann <>
Reviewed-By: Tobias Nießen <>
  • Loading branch information authored and fhinkel committed Mar 26, 2018
1 parent 8fb4ea9 commit 0c2cc89f3aab58a118f5e584cbeb4b20a6366cb0
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-fs-mkdir-rmdir.js
@@ -32,8 +32,8 @@ fs.mkdir(d, 0o666, common.mustCall(function(err) {
assert.strictEqual(this, undefined);
assert.ok(err, 'got no error');
assert.ok(/^EEXIST/.test(err.message), 'got no EEXIST message');
assert.strictEqual(err.code, 'EEXIST', 'got no EEXIST code');
assert.strictEqual(err.path, d, 'got no proper path for EEXIST');
assert.strictEqual(err.code, 'EEXIST');
assert.strictEqual(err.path, d);

fs.rmdir(d, assert.ifError);

0 comments on commit 0c2cc89

Please sign in to comment.
You can’t perform that action at this time.