Skip to content

Commit 0c2cc89

Browse files
davis.okoth@kemsa.co.kefhinkel
authored andcommitted
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. Refs: https://nodejs.org/api/assert.html#assert_assert_strictequal_actual_expected_message PR-URL: #19536 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 8fb4ea9 commit 0c2cc89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/parallel/test-fs-mkdir-rmdir.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ fs.mkdir(d, 0o666, common.mustCall(function(err) {
3232
assert.strictEqual(this, undefined);
3333
assert.ok(err, 'got no error');
3434
assert.ok(/^EEXIST/.test(err.message), 'got no EEXIST message');
35-
assert.strictEqual(err.code, 'EEXIST', 'got no EEXIST code');
36-
assert.strictEqual(err.path, d, 'got no proper path for EEXIST');
35+
assert.strictEqual(err.code, 'EEXIST');
36+
assert.strictEqual(err.path, d);
3737

3838
fs.rmdir(d, assert.ifError);
3939
}));

0 commit comments

Comments
 (0)