From 4555f557ce6a6c10e626a274c4b0fb4be1b86acb Mon Sep 17 00:00:00 2001 From: = Date: Thu, 22 Mar 2018 22:04:38 +0300 Subject: [PATCH] test: remove optional 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 --- test/parallel/test-fs-mkdir-rmdir.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-fs-mkdir-rmdir.js b/test/parallel/test-fs-mkdir-rmdir.js index 6427dbd34034d9..ff0da82bdf77e0 100644 --- a/test/parallel/test-fs-mkdir-rmdir.js +++ b/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); }));