Skip to content

Commit

Permalink
update the last test accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Dec 26, 2013
1 parent b86b7da commit 9f67b8e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ module.exports = function (opts) {
});

tap.on('results', function (res) {
if (/^fail\s/.test(test.name)) {

console.log(test.name);
if (!test.ok || /^fail\s+\d+$/.test(test.name)) {
out.push(updateName(test.offset + 1, '⨯ ' + test.name, 31));
}
else {
out.push(updateName(test.offset + 1, '✓ ' + test.name, 32));
}
out.push('\x1b[1G');
out.push(null);
});

return duplexer(tap, out);
Expand Down

0 comments on commit 9f67b8e

Please sign in to comment.