mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-15 00:54:25 +02:00
animation work
This commit is contained in:
parent
2ba6065a0d
commit
880e1ca630
5 changed files with 82 additions and 47 deletions
|
@ -18,6 +18,15 @@ describe('Promise animation', function() {
|
|||
expect(value).toBe(1);
|
||||
});
|
||||
|
||||
it('also takes animation packs', function() {
|
||||
var value = 0;
|
||||
var animation = new PromiseAnimation({
|
||||
animation: function() { value++; }
|
||||
});
|
||||
animation.play();
|
||||
expect(value).toBe(1);
|
||||
});
|
||||
|
||||
it('Will resolve a deferred', function() {
|
||||
var value = 0;
|
||||
var closure = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue