This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -939,9 +939,8 @@ describe('ngRepeat', function() {
939
939
it ( 'should throw error on adding existing duplicates and recover' , function ( ) {
940
940
scope . items = [ a , a , a ] ;
941
941
scope . $digest ( ) ;
942
- expect ( $exceptionHandler . errors . shift ( ) . message ) .
943
- toMatch (
944
- / ^ \[ n g R e p e a t : d u p e s \] D u p l i c a t e s i n a r e p e a t e r a r e n o t a l l o w e d \. U s e ' t r a c k b y ' e x p r e s s i o n t o s p e c i f y u n i q u e k e y s \. R e p e a t e r : i t e m i n i t e m s , D u p l i c a t e k e y : o b j e c t : 0 0 3 , D u p l i c a t e v a l u e : { } / ) ;
942
+ expect ( $exceptionHandler . errors . shift ( ) . message ) . toMatch (
943
+ / ^ \[ n g R e p e a t : d u p e s \] D u p l i c a t e s i n a r e p e a t e r a r e n o t a l l o w e d \. U s e ' t r a c k b y ' e x p r e s s i o n t o s p e c i f y u n i q u e k e y s \. R e p e a t e r : i t e m i n i t e m s , D u p l i c a t e k e y : o b j e c t : 0 0 3 , D u p l i c a t e v a l u e : { } / ) ;
945
944
946
945
// recover
947
946
scope . items = [ a ] ;
@@ -960,9 +959,8 @@ describe('ngRepeat', function() {
960
959
it ( 'should throw error on new duplicates and recover' , function ( ) {
961
960
scope . items = [ d , d , d ] ;
962
961
scope . $digest ( ) ;
963
- expect ( $exceptionHandler . errors . shift ( ) . message ) .
964
- toMatch (
965
- / ^ \[ n g R e p e a t : d u p e s \] D u p l i c a t e s i n a r e p e a t e r a r e n o t a l l o w e d \. U s e ' t r a c k b y ' e x p r e s s i o n t o s p e c i f y u n i q u e k e y s \. R e p e a t e r : i t e m i n i t e m s , D u p l i c a t e k e y : o b j e c t : 0 0 9 , D u p l i c a t e v a l u e : { } / ) ;
962
+ expect ( $exceptionHandler . errors . shift ( ) . message ) . toMatch (
963
+ / ^ \[ n g R e p e a t : d u p e s \] D u p l i c a t e s i n a r e p e a t e r a r e n o t a l l o w e d \. U s e ' t r a c k b y ' e x p r e s s i o n t o s p e c i f y u n i q u e k e y s \. R e p e a t e r : i t e m i n i t e m s , D u p l i c a t e k e y : o b j e c t : 0 0 9 , D u p l i c a t e v a l u e : { } / ) ;
966
964
967
965
// recover
968
966
scope . items = [ a ] ;
You can’t perform that action at this time.
0 commit comments