Skip to content

Commit

Permalink
test: improve test-util-inspect
Browse files Browse the repository at this point in the history
PR-URL: #14003
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
  • Loading branch information
psmarshall authored and refack committed Jul 24, 2017
1 parent 9cb390d commit fe14f9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-util-inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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]');

{
Expand Down

0 comments on commit fe14f9b

Please sign in to comment.