diff options
| author | Misko Hevery | 2011-11-02 16:32:46 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2011-11-14 16:39:33 -0800 | 
| commit | bd04316a89a0909e7a4e483839d573ce857f7622 (patch) | |
| tree | 0378c33976ba524b7090a3665cd7729638f1545e /test/BinderSpec.js | |
| parent | ed36b9da3be338fe9eb36f3eeea901d6f51cd768 (diff) | |
| download | angular.js-bd04316a89a0909e7a4e483839d573ce857f7622.tar.bz2 | |
refactor(services): migrate angular.service -> module
Diffstat (limited to 'test/BinderSpec.js')
| -rw-r--r-- | test/BinderSpec.js | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/test/BinderSpec.js b/test/BinderSpec.js index 495d98a8..6ab94401 100644 --- a/test/BinderSpec.js +++ b/test/BinderSpec.js @@ -222,8 +222,8 @@ describe('Binder', function() {    }));    it('IfTextBindingThrowsErrorDecorateTheSpan', inject( -    function($provide){ -      $provide.factory('$exceptionHandler', $exceptionHandlerMockFactory); +    function($exceptionHandlerProvider){ +      $exceptionHandlerProvider.mode('log');      },      function($rootScope, $exceptionHandler, $compile) {        $compile('<div>{{error.throw()}}</div>', null, true)($rootScope); @@ -245,8 +245,8 @@ describe('Binder', function() {      })    ); -  it('IfAttrBindingThrowsErrorDecorateTheAttribute', inject(function($provide){ -    $provide.factory('$exceptionHandler', $exceptionHandlerMockFactory); +  it('IfAttrBindingThrowsErrorDecorateTheAttribute', inject(function($exceptionHandlerProvider){ +    $exceptionHandlerProvider.mode('log');    }, function($rootScope, $exceptionHandler, $compile) {      $compile('<div attr="before {{error.throw()}} after"></div>', null, true)($rootScope);      var errorLogs = $exceptionHandler.errors; @@ -387,8 +387,8 @@ describe('Binder', function() {    }));    it('ActionOnAHrefThrowsError', inject( -    function($provide){ -      $provide.factory('$exceptionHandler', $exceptionHandlerMockFactory); +    function($exceptionHandlerProvider){ +      $exceptionHandlerProvider.mode('log');      },      function($rootScope, $exceptionHandler, $compile) {        var input = $compile('<a ng:click="action()">Add Phone</a>')($rootScope); @@ -471,8 +471,8 @@ describe('Binder', function() {    }));    it('ItShouldDisplayErrorWhenActionIsSyntacticlyIncorrect', inject( -    function($provide){ -      $provide.factory('$exceptionHandler', $exceptionHandlerMockFactory); +    function($exceptionHandlerProvider){ +      $exceptionHandlerProvider.mode('log');      },      function($rootScope, $exceptionHandler, $log, $compile) {        var element = $compile( | 
