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 <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>
  • Loading branch information
psmarshall authored and addaleax committed Jul 24, 2017
1 parent 6c6da38 commit 552d2be
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';
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 @@ -82,7 +83,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 552d2be

Please sign in to comment.