aboutsummaryrefslogtreecommitdiffstats
path: root/test/BinderSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/BinderSpec.js')
-rw-r--r--test/BinderSpec.js16
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(