Skip to content

Commit

Permalink
Allows to add global config formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
elcuervo committed Oct 16, 2012
1 parent 7c8fff8 commit 1be86ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gerbil.js
Expand Up @@ -3,7 +3,7 @@ var Gerbil = function Gerbil(description, tests) {
this.pending = 0; this.pending = 0;
this.failures = 0; this.failures = 0;
this.count = 0; this.count = 0;
this.config = new Gerbil.Config(Gerbil.globalConfig ); this.config = new Gerbil.Config(Gerbil.globalConfig);
this.timeout = 0; this.timeout = 0;
this.queue = new Gerbil.Queue; this.queue = new Gerbil.Queue;
this.results = new Gerbil.Queue; this.results = new Gerbil.Queue;
Expand Down Expand Up @@ -364,7 +364,7 @@ Gerbil.formatter = {
}; };


Gerbil.Config = function(globalConfig) { Gerbil.Config = function(globalConfig) {
this.formatter = Gerbil.formatter; this.formatter = globalConfig && globalConfig.formatter || Gerbil.formatter;
this.prototype = globalConfig; this.prototype = globalConfig;
}; };


Expand Down

0 comments on commit 1be86ce

Please sign in to comment.