@@ -1650,8 +1650,8 @@ describe('angular', function() {
1650
1650
1651
1651
expect ( function ( ) {
1652
1652
angularInit ( appElement , angular . bootstrap ) ;
1653
- } ) . toThrowError (
1654
- new RegExp ( '\\[\\$injector:modulerr] Failed to instantiate module doesntexist due to:\\n' +
1653
+ } ) . toThrowMinErr ( '$injector' , 'modulerr' ,
1654
+ new RegExp ( 'Failed to instantiate module doesntexist due to:\\n' +
1655
1655
'.*\\[\\$injector:nomod] Module \'doesntexist\' is not available! You either ' +
1656
1656
'misspelled the module name or forgot to load it\\.' )
1657
1657
) ;
@@ -1664,9 +1664,8 @@ describe('angular', function() {
1664
1664
1665
1665
expect ( function ( ) {
1666
1666
angular . bootstrap ( element ) ;
1667
- } ) . toThrowError (
1668
- / \[ n g : b t s t r p d \] A p p A l r e a d y B o o t s t r a p p e d w i t h t h i s E l e m e n t ' & l t ; d i v c l a s s = " ? n g \- s c o p e " ? ( n g [ 0 - 9 ] + = " ? [ 0 - 9 ] + " ? ) ? & g t ; ' / i
1669
- ) ;
1667
+ } ) . toThrowMinErr ( 'ng' , 'btstrpd' ,
1668
+ / A p p A l r e a d y B o o t s t r a p p e d w i t h t h i s E l e m e n t ' & l t ; d i v c l a s s = " ? n g - s c o p e " ? ( n g \d + = " ? \d + " ? ) ? & g t ; ' / i) ;
1670
1669
1671
1670
dealoc ( element ) ;
1672
1671
} ) ;
@@ -1676,9 +1675,7 @@ describe('angular', function() {
1676
1675
angular . bootstrap ( document . getElementsByTagName ( 'html' ) [ 0 ] ) ;
1677
1676
expect ( function ( ) {
1678
1677
angular . bootstrap ( document ) ;
1679
- } ) . toThrowError (
1680
- / \[ n g : b t s t r p d \] A p p A l r e a d y B o o t s t r a p p e d w i t h t h i s E l e m e n t ' d o c u m e n t ' / i
1681
- ) ;
1678
+ } ) . toThrowMinErr ( 'ng' , 'btstrpd' , / A p p A l r e a d y B o o t s t r a p p e d w i t h t h i s E l e m e n t ' d o c u m e n t ' / i) ;
1682
1679
1683
1680
dealoc ( document ) ;
1684
1681
} ) ;
@@ -1898,8 +1895,8 @@ describe('angular', function() {
1898
1895
1899
1896
expect ( function ( ) {
1900
1897
angular . bootstrap ( element , [ 'doesntexist' ] ) ;
1901
- } ) . toThrowError (
1902
- new RegExp ( '\\[\\$injector:modulerr\\] Failed to instantiate module doesntexist due to:\\n' +
1898
+ } ) . toThrowMinErr ( '$injector' , 'modulerr' ,
1899
+ new RegExp ( 'Failed to instantiate module doesntexist due to:\\n' +
1903
1900
'.*\\[\\$injector:nomod\\] Module \'doesntexist\' is not available! You either ' +
1904
1901
'misspelled the module name or forgot to load it\\.' ) ) ;
1905
1902
0 commit comments