diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js index ac576ec7cbf9d2..89e2acfbbb299d 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)]'