working on headless, some tests fail because promise does not resolve or execute

This commit is contained in:
Peter Cottle 2013-06-06 08:54:42 -10:00
parent d0e206bcc4
commit 89377b2956
4 changed files with 105 additions and 59 deletions

View file

@ -23,6 +23,12 @@ function getMockFactory() {
return Q.defer().promise;
};
}
// special method that does stuff
mockFactory.playRefreshAnimationAndFinish = function(gitVisuals, aQueue) {
console.log('trying to finish');
aQueue.thenFinish(Q.defer().promise);
};
return mockFactory;
}