aboutsummaryrefslogtreecommitdiffstats
path: root/test/service
diff options
context:
space:
mode:
Diffstat (limited to 'test/service')
-rw-r--r--test/service/compilerSpec.js3
-rw-r--r--test/service/scopeSpec.js10
2 files changed, 0 insertions, 13 deletions
diff --git a/test/service/compilerSpec.js b/test/service/compilerSpec.js
index a9d0a5db..b42b871a 100644
--- a/test/service/compilerSpec.js
+++ b/test/service/compilerSpec.js
@@ -1743,12 +1743,9 @@ describe('$compile', function() {
expect(widgetScope.$parent).toEqual($rootScope);
expect(transcludeScope.$parent).toEqual($rootScope);
- var removed = 0;
- $rootScope.$on('$destroy', function() { removed++; });
$rootScope.select = false;
$rootScope.$apply();
expect(element.text()).toEqual('Hello: Misko!');
- expect(removed).toEqual(1);
expect(widgetScope.$$nextSibling).toEqual(null);
});
});
diff --git a/test/service/scopeSpec.js b/test/service/scopeSpec.js
index d3713e9d..95b028fe 100644
--- a/test/service/scopeSpec.js
+++ b/test/service/scopeSpec.js
@@ -393,16 +393,6 @@ describe('Scope', function() {
$rootScope.$digest();
expect(log).toEqual('12');
}));
-
- it('should fire a $destroy event', inject(function($rootScope) {
- var destructedScopes = [];
- middle.$on('$destroy', function(event) {
- destructedScopes.push(event.currentScope);
- });
- middle.$destroy();
- expect(destructedScopes).toEqual([middle]);
- }));
-
});