Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(collapse): fix collapse animation timing
Browse files Browse the repository at this point in the history
Closes #4493
  • Loading branch information
inukshuk authored and wesleycho committed Oct 19, 2015
1 parent 82cd2d4 commit 6d1cd0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collapse/test/collapse.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ describe('collapse directive', function() {
scope.exp = false;
scope.isCollapsed = false;
scope.$digest();
$animate.flush();
var collapseHeight = element.height();
scope.exp = true;
$animate.flush();
scope.$digest();
expect(element.height()).toBeGreaterThan(collapseHeight);
});
Expand All @@ -122,6 +122,7 @@ describe('collapse directive', function() {
scope.exp = true;
scope.isCollapsed = false;
scope.$digest();
$animate.flush();
var collapseHeight = element.height();
scope.exp = false;
scope.$digest();
Expand Down

0 comments on commit 6d1cd0f

Please sign in to comment.