From 953b04b1cab80b9bf98d20d7214f415d9fa55a88 Mon Sep 17 00:00:00 2001 From: Uttam Pawar Date: Thu, 1 Dec 2016 08:19:10 -0800 Subject: [PATCH 1/2] Fixed the test with use of assert.strictEqual() instaed of assert.equal(). --- test/parallel/test-debugger-util-regression.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-debugger-util-regression.js b/test/parallel/test-debugger-util-regression.js index 6378ea3e9b171c..c879876a19231e 100644 --- a/test/parallel/test-debugger-util-regression.js +++ b/test/parallel/test-debugger-util-regression.js @@ -46,8 +46,8 @@ proc.stdout.on('data', (data) => { proc.stderr.on('data', (data) => stderr += data); process.on('exit', (code) => { - assert.equal(code, 0, 'the program should exit cleanly'); - assert.equal(stdout.includes('{ a: \'b\' }'), true, + assert.strictEqual(code, 0, 'the program should exit cleanly'); + assert.strictEqual(stdout.includes('{ a: \'b\' }'), true, 'the debugger should print the result of util.inspect'); - assert.equal(stderr, '', 'stderr should be empty'); + assert.strictEqual(stderr, '', 'stderr should be empty'); }); From 061391beaf911d584db6e9669fcf84453d276875 Mon Sep 17 00:00:00 2001 From: Uttam Pawar Date: Thu, 1 Dec 2016 08:33:42 -0800 Subject: [PATCH 2/2] Fixed alignment issue with the text after changing code to use assert.strictEqual(). --- test/parallel/test-debugger-util-regression.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-debugger-util-regression.js b/test/parallel/test-debugger-util-regression.js index c879876a19231e..07e52545814b14 100644 --- a/test/parallel/test-debugger-util-regression.js +++ b/test/parallel/test-debugger-util-regression.js @@ -48,6 +48,6 @@ proc.stderr.on('data', (data) => stderr += data); process.on('exit', (code) => { assert.strictEqual(code, 0, 'the program should exit cleanly'); assert.strictEqual(stdout.includes('{ a: \'b\' }'), true, - 'the debugger should print the result of util.inspect'); + 'the debugger should print the result of util.inspect'); assert.strictEqual(stderr, '', 'stderr should be empty'); });