Skip to content

Commit

Permalink
Merge pull request #94 from rwaldron/mark-failures-strict-or-non-strict
Browse files Browse the repository at this point in the history
Mark failures with "(strict)" or "(non-strict)"
  • Loading branch information
bterlson authored Nov 17, 2017
2 parents d83ec55 + 9b80af2 commit 3002972
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/reporters/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ function simpleReporter(results) {

clearPassed();
lastPassed = true;
process.stdout.write('PASS ' + test.file);
process.stdout.write(`PASS ${test.file}`);
});

results.on('fail', function (test) {
failed++;
clearPassed();
lastPassed = false;
console.log('FAIL ' + test.file);
console.log(' ' + test.result.message);
console.log(`FAIL ${test.file}${test.strictMode ? ' (strict)' : ' (non-strict)'}`);
console.log(` ${test.result.message}`);
console.log('');
});

results.on('end', function () {
clearPassed();

console.log('Ran ' + (passed + failed) + ' tests')
console.log(passed + ' passed')
console.log(failed + ' failed')
console.log(`Ran ${(passed + failed)} tests`);
console.log(`${passed} passed`);
console.log(`${failed} failed`);
});

function clearPassed() {
Expand Down

0 comments on commit 3002972

Please sign in to comment.