Skip to content

Commit

Permalink
Merge pull request #169 from pelias/fix-test-output
Browse files Browse the repository at this point in the history
fix(terminal): Restore expectation count output
  • Loading branch information
orangejulius authored May 14, 2019
2 parents da170f5 + 87b3965 commit 2e92075
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions output_generators/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ function prettyPrintTestCase( testCase, quiet ){

var input = JSON.stringify(result.testCase.in);
var expectationCount;
var expectationString = (expectationCount > 1) ? ' (' + expectationCount + ' expectations)' : '';
var testDescription = input + expectationString;

if (result.testCase.expected && result.testCase.expected.properties) {
expectationCount = result.testCase.expected.properties.length;
} else {
expectationCount = 0;
}

var expectationString = (expectationCount > 1) ? ' (' + expectationCount + ' expectations)' : '';
var testDescription = input + expectationString;

var status = (result.progress === undefined) ? '' : result.progress.inverse + ' ';
switch( result.result ){
case 'pass':
Expand Down

0 comments on commit 2e92075

Please sign in to comment.