mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-28 14:45:08 +02:00
Sweet, fixed tests
This commit is contained in:
parent
05fdff72f5
commit
d9050fd854
7 changed files with 31 additions and 9 deletions
|
@ -20,6 +20,12 @@ var ParseWaterfall = function(options) {
|
|||
};
|
||||
|
||||
ParseWaterfall.prototype.initParseWaterfall = function() {
|
||||
// check for node when testing
|
||||
if (!require('../util').isBrowser()) {
|
||||
this.parseWaterfall = [GitCommands.parse];
|
||||
return;
|
||||
}
|
||||
|
||||
// by deferring the initialization here, we dont require()
|
||||
// level too early (which barfs our init)
|
||||
this.parseWaterfall = this.options.parseWaterfall || [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue