aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/animateSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng/animateSpec.js')
-rw-r--r--test/ng/animateSpec.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/test/ng/animateSpec.js b/test/ng/animateSpec.js
index 7f440bb5..c5914a74 100644
--- a/test/ng/animateSpec.js
+++ b/test/ng/animateSpec.js
@@ -31,22 +31,10 @@ describe("$animate", function() {
expect(element.text()).toBe('21');
}));
- it("should animate the show animation event", inject(function($animate) {
- element.addClass('ng-hide');
- $animate.show(element);
- expect(element).toBeShown();
- }));
-
- it("should animate the hide animation event", inject(function($animate) {
- expect(element).toBeShown();
- $animate.hide(element);
- expect(element).toBeHidden();
- }));
-
it("should still perform DOM operations even if animations are disabled", inject(function($animate) {
$animate.enabled(false);
expect(element).toBeShown();
- $animate.hide(element);
+ $animate.addClass(element, 'ng-hide');
expect(element).toBeHidden();
}));
});