Skip to content

Commit

Permalink
Fixed build-flow: require BaseTech not in runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewblond committed Jun 19, 2015
1 parent c279456 commit e0e804f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lib/build-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
var inherit = require('inherit');
var Vow = require('vow');
var vowFs = require('./fs/async-fs');
var BaseTech = require('./tech/base-tech');

/**
* BuildFlow — это хэлпер для упрощения создания полностью настраиваемых технологий.
Expand Down Expand Up @@ -680,7 +681,7 @@ var BuildFlow = inherit( /** @lends BuildFlow.prototype */ {
/**
* Результирующая технология, которая строится на основе инстанции BuildFlow.
*/
var resultTech = inherit(require('./tech/base-tech'), resultTechMethods, staticMethods);
var resultTech = inherit(BaseTech, resultTechMethods, staticMethods);
var currentBuildFlow = this;
/**
* Каждому классу технологий добавляем метод buildFlow, чтобы вернуть инстанцию BuildFlow, с помощью которой
Expand Down
8 changes: 3 additions & 5 deletions test/lib/build-flow.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');

chai.use(chaiAsPromised);
chai.should();
require('chai')
.use(require('chai-as-promised'))
.should();

var path = require('path');
var fs = require('fs');
Expand Down

0 comments on commit e0e804f

Please sign in to comment.