Skip to content

Commit

Permalink
better coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
masylum committed Apr 22, 2011
1 parent 9dc122b commit f9e5e35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/testosterone.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ module.exports = function (config) {


_parseSpec = function (spec) { _parseSpec = function (spec) {
var specs = spec.split('\n').map(function (spec) { var specs = spec.split('\n').map(function (spec) {
spec = spec.replace(/(GIVEN|WHEN|AND|THEN)/gi, '$1'.magenta + '\033[90m'); spec = spec.replace(/(GIVEN|WHEN|AND|THEN)/g, '$1'.magenta + '\033[90m');
spec = spec.replace(/`([^`]*)`/g, '$1'.blue + '\033[90m'); spec = spec.replace(/`([^`]*)`/g, '$1'.blue + '\033[90m');
return spec; return spec;
}); });
return specs.join('\n'); return '\033[90m' + specs.join('\n');
}, },


_assert = (function () { _assert = (function () {
Expand Down

0 comments on commit f9e5e35

Please sign in to comment.