mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-30 01:34:26 +02:00
tree compare refactored
This commit is contained in:
parent
89377b2956
commit
89fa08e149
5 changed files with 87 additions and 96 deletions
|
@ -18,10 +18,11 @@ var util = require('../util');
|
|||
|
||||
function getMockFactory() {
|
||||
var mockFactory = {};
|
||||
var mockReturn = function() {
|
||||
return Q.defer().promise;
|
||||
};
|
||||
for (var key in AnimationFactory) {
|
||||
mockFactory[key] = function() {
|
||||
return Q.defer().promise;
|
||||
};
|
||||
mockFactory[key] = mockReturn;
|
||||
}
|
||||
// special method that does stuff
|
||||
mockFactory.playRefreshAnimationAndFinish = function(gitVisuals, aQueue) {
|
||||
|
@ -39,7 +40,6 @@ var HeadlessGit = function() {
|
|||
HeadlessGit.prototype.init = function() {
|
||||
this.commitCollection = new CommitCollection();
|
||||
this.branchCollection = new BranchCollection();
|
||||
this.treeCompare = new TreeCompare();
|
||||
|
||||
// here we mock visuals and animation factory so the git engine
|
||||
// is headless
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue