@@ -3977,7 +3977,7 @@ describe('$compile', function() {
3977
3977
3978
3978
componentScope . ref = 'ignore me' ;
3979
3979
expect ( function ( ) { $rootScope . $apply ( ) ; } ) .
3980
- toThrowMinErr ( "$compile" , "nonassign" , "Expression ''hello ' + name' used with directive 'myComponent' is non-assignable!" ) ;
3980
+ toThrowMinErr ( "$compile" , "nonassign" , "Expression ''hello ' + name' in attribute 'ref' used with directive 'myComponent' is non-assignable!" ) ;
3981
3981
expect ( componentScope . ref ) . toBe ( 'hello world' ) ;
3982
3982
// reset since the exception was rethrown which prevented phase clearing
3983
3983
$rootScope . $$phase = null ;
@@ -3994,7 +3994,7 @@ describe('$compile', function() {
3994
3994
3995
3995
componentScope . ref = 'ignore me' ;
3996
3996
expect ( function ( ) { $rootScope . $apply ( ) ; } ) .
3997
- toThrowMinErr ( "$compile" , "nonassign" , "Expression 'undefined' used with directive 'myComponent' is non-assignable!" ) ;
3997
+ toThrowMinErr ( "$compile" , "nonassign" , "Expression 'undefined' in attribute 'ref' used with directive 'myComponent' is non-assignable!" ) ;
3998
3998
expect ( componentScope . ref ) . toBeUndefined ( ) ;
3999
3999
4000
4000
$rootScope . $$phase = null ; // reset since the exception was rethrown which prevented phase clearing
@@ -4051,7 +4051,7 @@ describe('$compile', function() {
4051
4051
componentScope . reference = { name : 'b' } ;
4052
4052
expect ( function ( ) {
4053
4053
$rootScope . $apply ( ) ;
4054
- } ) . toThrowMinErr ( "$compile" , "nonassign" , "Expression '{name: name}' used with directive 'myComponent' is non-assignable!" ) ;
4054
+ } ) . toThrowMinErr ( "$compile" , "nonassign" , "Expression '{name: name}' in attribute 'reference' used with directive 'myComponent' is non-assignable!" ) ;
4055
4055
4056
4056
} ) ) ;
4057
4057
0 commit comments