diff options
Diffstat (limited to 'test/testabilityPatch.js')
| -rw-r--r-- | test/testabilityPatch.js | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |
