From 6f4394c3f8322edc04404fa2590034b3610b6130 Mon Sep 17 00:00:00 2001 From: sagirk Date: Wed, 23 May 2018 15:50:02 +0530 Subject: [PATCH] test: remove message argument from strictEqual() In test/parallel/test-require-process.js, the last thing in the test is a call to assert.strictEqual(). It has a string literal as its third argument. Unfortunately, that means that the diff between the two values being compared will be suppressed if there is an AssertionError. That's not helpful for debugging. This is fixed by removing the third argument from the call. It is, however, preserved in a comment above the call to assert.strictEqual(). Fixes: https://github.com/nodejs/node/issues/20911 Refs: https://www.nodetodo.org/getting-started --- test/parallel/test-require-process.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-require-process.js b/test/parallel/test-require-process.js index f2a3ac89a862fe..57af1508f00a34 100644 --- a/test/parallel/test-require-process.js +++ b/test/parallel/test-require-process.js @@ -3,5 +3,5 @@ require('../common'); const assert = require('assert'); const nativeProcess = require('process'); -assert.strictEqual(nativeProcess, process, - 'require("process") should return global process reference'); +// require('process') should return global process reference +assert.strictEqual(nativeProcess, process);