From e88dfb734a64aad4dbd402642816781b0e1725ec Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sat, 12 Nov 2011 15:23:30 -0800 Subject: refactor(injector): $injector is no longer a function. - $injector('abc') -> $injector.get('abc'); - $injector(fn) -> $injector.invoke(null, fn); --- test/testabilityPatch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/testabilityPatch.js') diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index ad39e2fd..8150a0a3 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -31,8 +31,8 @@ beforeEach(function() { afterEach(function() { if (this.$injector) { - var $rootScope = this.$injector('$rootScope'); - var $log = this.$injector('$log'); + var $rootScope = this.$injector.get('$rootScope'); + var $log = this.$injector.get('$log'); // release the injector dealoc($rootScope); -- cgit v1.2.3