From b109ab00a4bfefc8743501e1453dee86424ef8e8 Mon Sep 17 00:00:00 2001 From: Richard Markins Date: Fri, 12 Oct 2018 09:51:11 -0700 Subject: [PATCH 1/2] test: correct assert test --- test/parallel/test-console-instance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-console-instance.js b/test/parallel/test-console-instance.js index 5a2e10b419cb03..fa1de967d0b5c1 100644 --- a/test/parallel/test-console-instance.js +++ b/test/parallel/test-console-instance.js @@ -72,7 +72,7 @@ c.log('test'); c.error('test'); out.write = common.mustCall((d) => { - assert.strictEqual('{ foo: 1 }\n', d); + assert.strictEqual(d, '{ foo: 1 }\n') }); c.dir({ foo: 1 }); From c4c8972dbec4bc438a35278b2a4b060782ea7de4 Mon Sep 17 00:00:00 2001 From: Richard Markins Date: Fri, 12 Oct 2018 10:16:05 -0700 Subject: [PATCH 2/2] fix: added semicolon back --- test/parallel/test-console-instance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-console-instance.js b/test/parallel/test-console-instance.js index fa1de967d0b5c1..0b69212948dd2c 100644 --- a/test/parallel/test-console-instance.js +++ b/test/parallel/test-console-instance.js @@ -72,7 +72,7 @@ c.log('test'); c.error('test'); out.write = common.mustCall((d) => { - assert.strictEqual(d, '{ foo: 1 }\n') + assert.strictEqual(d, '{ foo: 1 }\n'); }); c.dir({ foo: 1 });