aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-12 15:23:30 -0800
committerMisko Hevery2011-11-14 20:31:19 -0800
commite88dfb734a64aad4dbd402642816781b0e1725ec (patch)
tree19fb3dde697d1dc3082be9550c76aa29a8c232a7 /test/testabilityPatch.js
parent8d6dc0b9a7b3dbff5f8edb3217b60b0cc5b66be4 (diff)
downloadangular.js-e88dfb734a64aad4dbd402642816781b0e1725ec.tar.bz2
refactor(injector): $injector is no longer a function.
- $injector('abc') -> $injector.get('abc'); - $injector(fn) -> $injector.invoke(null, fn);
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js4
1 files changed, 2 insertions, 2 deletions
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);