test: improve test-util-inspect
PR-URL: https://github.com/nodejs/node/pull/14003 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
parent
9cb390d899
commit
fe14f9b3d3
@ -22,6 +22,7 @@
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
const assert = require('assert');
|
||||
const JSStream = process.binding('js_stream').JSStream;
|
||||
const util = require('util');
|
||||
const vm = require('vm');
|
||||
|
||||
@ -83,7 +84,7 @@ assert.strictEqual(util.inspect(Object.assign(new String('hello'),
|
||||
{ [Symbol('foo')]: 123 }), { showHidden: true }),
|
||||
'{ [String: \'hello\'] [length]: 5, [Symbol(foo)]: 123 }');
|
||||
|
||||
assert.strictEqual(util.inspect(process.stdin._handle._externalStream),
|
||||
assert.strictEqual(util.inspect((new JSStream())._externalStream),
|
||||
'[External]');
|
||||
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user