Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
test: initial test failure fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhorton committed Sep 22, 2017
1 parent 8b93249 commit 9ef12bb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
31 changes: 22 additions & 9 deletions test/parallel/test-util-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,28 @@ assert.strictEqual(
}));
assert.strictEqual(
util.format('%o', nestedObj2),
'{ foo: \'bar\',\n' +
' foobar: 1,\n' +
' func: \n' +
' [ { a: \n' +
' { [Function: a]\n' +
' [length]: 0,\n' +
' [name]: \'a\',\n' +
' [prototype]: a { [constructor]: [Circular] } } },\n' +
' [length]: 1 ] }');
common.engineSpecificMessage({
v8:
'{ foo: \'bar\',\n' +
' foobar: 1,\n' +
' func: \n' +
' [ { a: \n' +
' { [Function: a]\n' +
' [length]: 0,\n' +
' [name]: \'a\',\n' +
' [prototype]: a { [constructor]: [Circular] } } },\n' +
' [length]: 1 ] }',
chakracore:
'{ foo: \'bar\',\n' +
' foobar: 1,\n' +
' func: \n' +
' [ { a: \n' +
' { [Function: a]\n' +
' [prototype]: a { [constructor]: [Circular] },\n' +
' [name]: \'a\',\n' +
' [length]: 0 } },\n' +
' [length]: 1 ] }'
}));
assert.strictEqual(
util.format('%o', nestedObj),
common.engineSpecificMessage({
Expand Down
5 changes: 4 additions & 1 deletion test/parallel/test-util-inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ assert.strictEqual(
);

assert.strictEqual(util.inspect((new JSStream())._externalStream),
'[External]');
common.engineSpecificMessage({
v8: '[External]',
chakracore: '{}'
}));

{
const regexp = /regexp/;
Expand Down

0 comments on commit 9ef12bb

Please sign in to comment.