diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js index 57994af20911d7..5d10f10ce01edd 100644 --- a/test/parallel/test-util-inspect.js +++ b/test/parallel/test-util-inspect.js @@ -902,6 +902,10 @@ assert.strictEqual( // Test boxed primitives output the correct values. assert.strictEqual(util.inspect(new String('test')), "[String: 'test']"); +assert.strictEqual( + util.inspect(new String('test'), { colors: true }), + "\u001b[32m[String: 'test']\u001b[39m" +); assert.strictEqual( util.inspect(Object(Symbol('test'))), '[Symbol: Symbol(test)]'