@@ -3996,7 +3996,7 @@ describe('$compile', function() {
39963996
39973997 componentScope . ref = 'ignore me' ;
39983998 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!" ) ;
40004000 expect ( componentScope . ref ) . toBe ( 'hello world' ) ;
40014001 // reset since the exception was rethrown which prevented phase clearing
40024002 $rootScope . $$phase = null ;
@@ -4013,7 +4013,7 @@ describe('$compile', function() {
40134013
40144014 componentScope . ref = 'ignore me' ;
40154015 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!" ) ;
40174017 expect ( componentScope . ref ) . toBeUndefined ( ) ;
40184018
40194019 $rootScope . $$phase = null ; // reset since the exception was rethrown which prevented phase clearing
@@ -4070,7 +4070,7 @@ describe('$compile', function() {
40704070 componentScope . reference = { name : 'b' } ;
40714071 expect ( function ( ) {
40724072 $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!" ) ;
40744074
40754075 } ) ) ;
40764076
0 commit comments