Skip to content

Commit

Permalink
tweak styling a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 3, 2011
1 parent 5856144 commit 1da6c4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,6 +1,6 @@

TESTS = test/unit/*.js
REPORTER = spec
REPORTER = dot

test: test-unit

Expand Down
6 changes: 2 additions & 4 deletions lib/reporters/base.js
Expand Up @@ -29,9 +29,7 @@ exports.useColors = isatty;

exports.colors = {
'pass': 90
, 'pass message': 32
, 'fail': 31
, 'fail message': 31
, 'pending': 36
, 'suite': '1;90'
, 'error title': 0
Expand Down Expand Up @@ -182,7 +180,7 @@ Base.prototype.epilogue = function(){
// failure
if (stats.failures) {
console.error(
color('fail message', ' ✖ %d of %d tests failed:')
' \033[91m✖ %d of %d tests failed\033[90m:\033[0m'
, stats.failures, stats.tests);
Base.list(this.failures);
console.error();
Expand All @@ -194,7 +192,7 @@ Base.prototype.epilogue = function(){

// pass
console.log(
color('pass message', ' ✔ %d tests completed in %dms')
' \033[92m✔ %d \033[32mtests completed\033[90m (%dms)\033[0m'
, stats.tests || 0
, stats.duration);

Expand Down

0 comments on commit 1da6c4c

Please sign in to comment.