Browse files

Merge pull request #67 from mdp/patch-1

Simpler tap formatting
  • Loading branch information...
2 parents de90c6c + 9b2aedc commit 25739d420526bc78881493b335a5174a0fb56e8f @Kami Kami committed Apr 24, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/reporters/test/tap.js
View
8 lib/reporters/test/tap.js
@@ -127,7 +127,7 @@ TapReporter.prototype._reportResults = function() {
startNum = 1;
}
- console.log(' %d..%d', startNum, testsLen);
+ console.log('%d..%d', startNum, testsLen);
testNum = 0;
for (i = 0; i < filesLen; i++) {
@@ -140,13 +140,13 @@ TapReporter.prototype._reportResults = function() {
testResult = tests[test];
if (testResult.status === 'success') {
- console.log(' ok %d - %s: %s', testNum, testResult.file, testResult.name);
+ console.log('ok %d - %s: %s', testNum, testResult.file, testResult.name);
}
else if (testResult.status === 'failure') {
- console.log(' not ok %d - %s: %s', testNum, testResult.file, testResult.name);
+ console.log('not ok %d - %s: %s', testNum, testResult.file, testResult.name);
}
else if (testResult.status === 'timeout') {
- console.log(' not ok %d - %s: %s (timeout)', testNum, testResult.file,
+ console.log('not ok %d - %s: %s (timeout)', testNum, testResult.file,
testResult.name);
}
}

0 comments on commit 25739d4

Please sign in to comment.