From 8d6dc0b9a7b3dbff5f8edb3217b60b0cc5b66be4 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sat, 12 Nov 2011 14:57:43 -0800 Subject: del($eager): removed the support for $eager services --- test/AngularSpec.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'test/AngularSpec.js') diff --git a/test/AngularSpec.js b/test/AngularSpec.js index e14f2e27..4579000d 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -389,18 +389,6 @@ describe('angular', function() { })('svc2')).toEqual('svc2-svc1'); }); - it('should eagerly instantiate a service if $eager is true', function() { - var log = []; - angular.injector(function($provide){ - $provide.service('svc1', function() { - this.$get = function(){ - log.push('svc1'); - } - this.$eager = true; - }); - }); - expect(log).toEqual(['svc1']); - }); }); -- cgit v1.2.3