@@ -651,7 +651,7 @@ describe('React', () => {
651651 ) }
652652 </ ProviderMock > ,
653653 )
654- expect ( spy ) . toHaveBeenCalledTimes ( 1 )
654+ expect ( spy ) . toHaveBeenCalledOnce ( )
655655 expect ( spy . mock . calls [ 0 ] [ 0 ] ) . toMatch (
656656 / m a p S t a t e T o P r o p s \( \) i n C o n n e c t \( C o n t a i n e r \) m u s t r e t u r n a p l a i n o b j e c t / ,
657657 )
@@ -668,7 +668,7 @@ describe('React', () => {
668668 ) }
669669 </ ProviderMock > ,
670670 )
671- expect ( spy ) . toHaveBeenCalledTimes ( 1 )
671+ expect ( spy ) . toHaveBeenCalledOnce ( )
672672 expect ( spy . mock . calls [ 0 ] [ 0 ] ) . toMatch (
673673 / m a p S t a t e T o P r o p s \( \) i n C o n n e c t \( C o n t a i n e r \) m u s t r e t u r n a p l a i n o b j e c t / ,
674674 )
@@ -685,7 +685,7 @@ describe('React', () => {
685685 ) }
686686 </ ProviderMock > ,
687687 )
688- expect ( spy ) . toHaveBeenCalledTimes ( 1 )
688+ expect ( spy ) . toHaveBeenCalledOnce ( )
689689 expect ( spy . mock . calls [ 0 ] [ 0 ] ) . toMatch (
690690 / m a p S t a t e T o P r o p s \( \) i n C o n n e c t \( C o n t a i n e r \) m u s t r e t u r n a p l a i n o b j e c t / ,
691691 )
@@ -702,7 +702,7 @@ describe('React', () => {
702702 ) }
703703 </ ProviderMock > ,
704704 )
705- expect ( spy ) . toHaveBeenCalledTimes ( 1 )
705+ expect ( spy ) . toHaveBeenCalledOnce ( )
706706 expect ( spy . mock . calls [ 0 ] [ 0 ] ) . toMatch (
707707 / m a p D i s p a t c h T o P r o p s \( \) i n C o n n e c t \( C o n t a i n e r \) m u s t r e t u r n a p l a i n o b j e c t / ,
708708 )
@@ -719,7 +719,7 @@ describe('React', () => {
719719 ) }
720720 </ ProviderMock > ,
721721 )
722- expect ( spy ) . toHaveBeenCalledTimes ( 1 )
722+ expect ( spy ) . toHaveBeenCalledOnce ( )
723723 expect ( spy . mock . calls [ 0 ] [ 0 ] ) . toMatch (
724724 / m a p D i s p a t c h T o P r o p s \( \) i n C o n n e c t \( C o n t a i n e r \) m u s t r e t u r n a p l a i n o b j e c t / ,
725725 )
@@ -736,7 +736,7 @@ describe('React', () => {
736736 ) }
737737 </ ProviderMock > ,
738738 )
739- expect ( spy ) . toHaveBeenCalledTimes ( 1 )
739+ expect ( spy ) . toHaveBeenCalledOnce ( )
740740 expect ( spy . mock . calls [ 0 ] [ 0 ] ) . toMatch (
741741 / m a p D i s p a t c h T o P r o p s \( \) i n C o n n e c t \( C o n t a i n e r \) m u s t r e t u r n a p l a i n o b j e c t / ,
742742 )
@@ -753,7 +753,7 @@ describe('React', () => {
753753 ) }
754754 </ ProviderMock > ,
755755 )
756- expect ( spy ) . toHaveBeenCalledTimes ( 1 )
756+ expect ( spy ) . toHaveBeenCalledOnce ( )
757757 expect ( spy . mock . calls [ 0 ] [ 0 ] ) . toMatch (
758758 / m e r g e P r o p s \( \) i n C o n n e c t \( C o n t a i n e r \) m u s t r e t u r n a p l a i n o b j e c t / ,
759759 )
@@ -770,7 +770,7 @@ describe('React', () => {
770770 ) }
771771 </ ProviderMock > ,
772772 )
773- expect ( spy ) . toHaveBeenCalledTimes ( 1 )
773+ expect ( spy ) . toHaveBeenCalledOnce ( )
774774 expect ( spy . mock . calls [ 0 ] [ 0 ] ) . toMatch (
775775 / m e r g e P r o p s \( \) i n C o n n e c t \( C o n t a i n e r \) m u s t r e t u r n a p l a i n o b j e c t / ,
776776 )
@@ -787,7 +787,7 @@ describe('React', () => {
787787 ) }
788788 </ ProviderMock > ,
789789 )
790- expect ( spy ) . toHaveBeenCalledTimes ( 1 )
790+ expect ( spy ) . toHaveBeenCalledOnce ( )
791791 expect ( spy . mock . calls [ 0 ] [ 0 ] ) . toMatch (
792792 / m e r g e P r o p s \( \) i n C o n n e c t \( C o n t a i n e r \) m u s t r e t u r n a p l a i n o b j e c t / ,
793793 )
@@ -1488,7 +1488,7 @@ describe('React', () => {
14881488 < ConnectedContainer />
14891489 </ ProviderMock > ,
14901490 )
1491- expect ( spy ) . toHaveBeenCalledTimes ( 1 )
1491+ expect ( spy ) . toHaveBeenCalledOnce ( )
14921492 expect ( tester . getByTestId ( 'string' ) ) . toHaveTextContent ( '' )
14931493 rtl . act ( ( ) => {
14941494 store . dispatch ( { type : 'APPEND' , body : 'a' } )
@@ -1583,7 +1583,7 @@ describe('React', () => {
15831583 }
15841584
15851585 const tester = rtl . render ( < Root /> )
1586- expect ( spy ) . toHaveBeenCalledTimes ( 1 )
1586+ expect ( spy ) . toHaveBeenCalledOnce ( )
15871587 expect ( tester . getByTestId ( 'string' ) ) . toHaveTextContent ( '' )
15881588 expect ( tester . getByTestId ( 'pass' ) ) . toHaveTextContent ( '' )
15891589
@@ -2051,7 +2051,7 @@ describe('React', () => {
20512051 </ ProviderMock > ,
20522052 )
20532053
2054- expect ( mapStateToProps ) . toHaveBeenCalledTimes ( 1 )
2054+ expect ( mapStateToProps ) . toHaveBeenCalledOnce ( )
20552055 rtl . act ( ( ) => {
20562056 store . dispatch ( { type : 'INC' } )
20572057 } )
@@ -2114,11 +2114,11 @@ describe('React', () => {
21142114 rtl . act ( ( ) => {
21152115 store . dispatch ( { type : 'INC' } )
21162116 } )
2117- expect ( mapStateToProps ) . toHaveBeenCalledTimes ( 1 )
2117+ expect ( mapStateToProps ) . toHaveBeenCalledOnce ( )
21182118 rtl . act ( ( ) => {
21192119 store . dispatch ( { type : 'INC' } )
21202120 } )
2121- expect ( mapStateToProps ) . toHaveBeenCalledTimes ( 1 )
2121+ expect ( mapStateToProps ) . toHaveBeenCalledOnce ( )
21222122 } )
21232123 } )
21242124
@@ -2381,9 +2381,9 @@ describe('React', () => {
23812381 expect ( tester . getByTestId ( 'b' ) ) . toHaveTextContent ( '3' )
23822382 expect ( tester . getByTestId ( 'c' ) ) . toHaveTextContent ( '1' )
23832383
2384- expect ( c3Spy ) . toHaveBeenCalledTimes ( 1 )
2385- expect ( c2Spy ) . toHaveBeenCalledTimes ( 1 )
2386- expect ( c1Spy ) . toHaveBeenCalledTimes ( 1 )
2384+ expect ( c3Spy ) . toHaveBeenCalledOnce ( )
2385+ expect ( c2Spy ) . toHaveBeenCalledOnce ( )
2386+ expect ( c1Spy ) . toHaveBeenCalledOnce ( )
23872387
23882388 rtl . act ( ( ) => {
23892389 store1 . dispatch ( { type : 'CHANGE' } )
@@ -2395,7 +2395,7 @@ describe('React', () => {
23952395 expect ( tester . getByTestId ( 'c' ) ) . toHaveTextContent ( '2' )
23962396
23972397 expect ( c3Spy ) . toHaveBeenCalledTimes ( 2 )
2398- expect ( c2Spy ) . toHaveBeenCalledTimes ( 1 )
2398+ expect ( c2Spy ) . toHaveBeenCalledOnce ( )
23992399 expect ( c1Spy ) . toHaveBeenCalledTimes ( 2 )
24002400
24012401 rtl . act ( ( ) => {
@@ -2485,16 +2485,16 @@ describe('React', () => {
24852485 </ ProviderMock >
24862486 </ ProviderMock > ,
24872487 )
2488- expect ( mapStateToPropsB ) . toHaveBeenCalledTimes ( 1 )
2489- expect ( mapStateToPropsC ) . toHaveBeenCalledTimes ( 1 )
2490- expect ( mapStateToPropsD ) . toHaveBeenCalledTimes ( 1 )
2488+ expect ( mapStateToPropsB ) . toHaveBeenCalledOnce ( )
2489+ expect ( mapStateToPropsC ) . toHaveBeenCalledOnce ( )
2490+ expect ( mapStateToPropsD ) . toHaveBeenCalledOnce ( )
24912491
24922492 rtl . act ( ( ) => {
24932493 store1 . dispatch ( { type : 'INC' } )
24942494 } )
24952495
2496- expect ( mapStateToPropsB ) . toHaveBeenCalledTimes ( 1 )
2497- expect ( mapStateToPropsC ) . toHaveBeenCalledTimes ( 1 )
2496+ expect ( mapStateToPropsB ) . toHaveBeenCalledOnce ( )
2497+ expect ( mapStateToPropsC ) . toHaveBeenCalledOnce ( )
24982498 expect ( mapStateToPropsD ) . toHaveBeenCalledTimes ( 2 )
24992499
25002500 rtl . act ( ( ) => {
@@ -2955,7 +2955,7 @@ describe('React', () => {
29552955 </ ProviderMock > ,
29562956 )
29572957
2958- expect ( spy ) . toHaveBeenCalledTimes ( 1 )
2958+ expect ( spy ) . toHaveBeenCalledOnce ( )
29592959 expect ( spy ) . toHaveBeenCalledWith (
29602960 'The `pure` option has been removed. `connect` is now always a "pure/memoized" component' ,
29612961 )
0 commit comments