@@ -3996,7 +3996,7 @@ describe('$compile', function() {
3996
3996
3997
3997
componentScope . ref = 'ignore me' ;
3998
3998
expect ( function ( ) { $rootScope . $apply ( ) ; } ) .
3999
- toThrowMinErr ( "$compile" , "nonassign" , "Expression ''hello ' + name' used with directive 'myComponent' is non-assignable!" ) ;
3999
+ toThrowMinErr ( "$compile" , "nonassign" , "Expression ''hello ' + name' in attribute 'ref' used with directive 'myComponent' is non-assignable!" ) ;
4000
4000
expect ( componentScope . ref ) . toBe ( 'hello world' ) ;
4001
4001
// reset since the exception was rethrown which prevented phase clearing
4002
4002
$rootScope . $$phase = null ;
@@ -4013,7 +4013,7 @@ describe('$compile', function() {
4013
4013
4014
4014
componentScope . ref = 'ignore me' ;
4015
4015
expect ( function ( ) { $rootScope . $apply ( ) ; } ) .
4016
- toThrowMinErr ( "$compile" , "nonassign" , "Expression 'undefined' used with directive 'myComponent' is non-assignable!" ) ;
4016
+ toThrowMinErr ( "$compile" , "nonassign" , "Expression 'undefined' in attribute 'ref' used with directive 'myComponent' is non-assignable!" ) ;
4017
4017
expect ( componentScope . ref ) . toBeUndefined ( ) ;
4018
4018
4019
4019
$rootScope . $$phase = null ; // reset since the exception was rethrown which prevented phase clearing
@@ -4070,7 +4070,7 @@ describe('$compile', function() {
4070
4070
componentScope . reference = { name : 'b' } ;
4071
4071
expect ( function ( ) {
4072
4072
$rootScope . $apply ( ) ;
4073
- } ) . toThrowMinErr ( "$compile" , "nonassign" , "Expression '{name: name}' used with directive 'myComponent' is non-assignable!" ) ;
4073
+ } ) . toThrowMinErr ( "$compile" , "nonassign" , "Expression '{name: name}' in attribute 'reference' used with directive 'myComponent' is non-assignable!" ) ;
4074
4074
4075
4075
} ) ) ;
4076
4076
0 commit comments