We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe16ed commit 630cc3aCopy full SHA for 630cc3a
test/parallel/test-util-inspect.js
@@ -902,6 +902,10 @@ assert.strictEqual(
902
903
// Test boxed primitives output the correct values.
904
assert.strictEqual(util.inspect(new String('test')), "[String: 'test']");
905
+assert.strictEqual(
906
+ util.inspect(new String('test'), { colors: true }),
907
+ "\u001b[32m[String: 'test']\u001b[39m"
908
+);
909
assert.strictEqual(
910
util.inspect(Object(Symbol('test'))),
911
'[Symbol: Symbol(test)]'
0 commit comments