Skip to content

Commit 27bb33e

Browse files
committed
Better output
1 parent 24a16b6 commit 27bb33e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ cli.main(function(args, options) {
7070
PhpjsUtil.test(params, function(err, test, params) {
7171
var testline = cli.pad(params['name'] + '#' + test['number'], (width * 0.4), ' ', 'right') +
7272
' ' + cli.pad(test['example'], (width * 0.6 -7)) + '\n' +
73-
' ' + cli.pad(test['expected'], width) + '\n' +
74-
' ' + cli.pad(test['result'], width) + '\n' +
73+
' expected' + cli.pad(JSON.stringify(test['expected'], undefined, 2).replace(/\n/g, ''), width-8) + '\n' +
74+
' result ' + cli.pad(JSON.stringify(test['result'], undefined, 2).replace(/\n/g, ''), width-8) + '\n' +
7575
' ';
7676

7777
if (err) {

0 commit comments

Comments
 (0)