From 570463a465fae02efc33e5a1fa963437cdc275dd Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 11 Apr 2013 22:39:15 -0700 Subject: fix(ngAnimate): prevent animation on initial page load --- test/testabilityPatch.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/testabilityPatch.js') diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index cef00993..a4d4b46f 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -24,15 +24,17 @@ beforeEach(function() { // reset to jQuery or default to us. bindJQuery(); - jqLite(document.body).html(''); + jqLite(document.body).html('').removeData(); }); afterEach(function() { if (this.$injector) { var $rootScope = this.$injector.get('$rootScope'); + var $rootElement = this.$injector.get('$rootElement'); var $log = this.$injector.get('$log'); // release the injector dealoc($rootScope); + dealoc($rootElement); // check $log mock $log.assertEmpty && $log.assertEmpty(); -- cgit v1.2.3