Skip to content
Browse files

better coloring

  • Loading branch information...
1 parent 9dc122b commit f9e5e35513188ce6f930b3a4c47589c76a251122 @masylum committed Apr 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/testosterone.js
View
4 lib/testosterone.js
@@ -27,11 +27,11 @@ module.exports = function (config) {
_parseSpec = 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');
return spec;
});
- return specs.join('\n');
+ return '\033[90m' + specs.join('\n');
},
_assert = (function () {

0 comments on commit f9e5e35

Please sign in to comment.
Something went wrong with that request. Please try again.