aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/xhr.errorSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-01 21:09:54 -0700
committerMisko Hevery2011-11-14 16:39:32 -0800
commited36b9da3be338fe9eb36f3eeea901d6f51cd768 (patch)
treeffdc924e4b1fc1c6912674c82e029bf975ca9fca /test/service/xhr.errorSpec.js
parentc925f8a6578e05c8136c206f2fd98eeaaf1c0f16 (diff)
downloadangular.js-ed36b9da3be338fe9eb36f3eeea901d6f51cd768.tar.bz2
refactor(injector): switch to injector 2.0 introduce modules
Diffstat (limited to 'test/service/xhr.errorSpec.js')
-rw-r--r--test/service/xhr.errorSpec.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/service/xhr.errorSpec.js b/test/service/xhr.errorSpec.js
index 0ed5ab59..f9ce2b72 100644
--- a/test/service/xhr.errorSpec.js
+++ b/test/service/xhr.errorSpec.js
@@ -3,11 +3,9 @@
describe('$xhr.error', function() {
var log;
- beforeEach(inject(function(service) {
- service('$xhr.error', function(){
- return jasmine.createSpy('$xhr.error');
- });
- service.alias('$xhr.error', '$xhrError');
+ beforeEach(inject(function($provide) {
+ $provide.value('$xhr.error', jasmine.createSpy('$xhr.error'));
+ $provide.factory('$xhrError', ['$xhr.error', identity]);
log = '';
}));