diff --git a/test/parallel/test-console-instance.js b/test/parallel/test-console-instance.js index 5a2e10b419cb03..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('{ foo: 1 }\n', d); + assert.strictEqual(d, '{ foo: 1 }\n'); }); c.dir({ foo: 1 });