@@ -45,7 +45,7 @@ describe('<FormattedRelative>', () => {
45
45
const spy = jest . fn ( ) . mockImplementation ( ( ) => null ) ;
46
46
mountWithProvider ( { value : 0 , children : spy } , intl ) ;
47
47
mountWithProvider ( { value : 1 , children : spy } , intl ) ;
48
- expect ( spy ) . toHaveBeenCalledTimes ( 2 ) ;
48
+ expect ( spy ) . toHaveBeenCalledTimes ( 4 ) ;
49
49
} ) ;
50
50
51
51
it ( 'should re-render when context changes' , ( ) => {
@@ -56,7 +56,7 @@ describe('<FormattedRelative>', () => {
56
56
mountWithProvider ( { value : 0 , children : spy } , intl ) ;
57
57
mountWithProvider ( { value : 0 , children : spy } , otherIntl ) ;
58
58
59
- expect ( spy ) . toHaveBeenCalledTimes ( 2 ) ;
59
+ expect ( spy ) . toHaveBeenCalledTimes ( 4 ) ;
60
60
} ) ;
61
61
62
62
it ( 'accepts valid IntlRelativeTimeFormat options as props' , ( ) => {
@@ -110,7 +110,7 @@ describe('<FormattedRelative>', () => {
110
110
const spy = jest . fn ( ) . mockImplementation ( ( ) => < b > Jest</ b > ) ;
111
111
const rendered = mountWithProvider ( { value : 0 , children : spy } , intl ) ;
112
112
113
- expect ( spy ) . toHaveBeenCalledTimes ( 1 ) ;
113
+ expect ( spy ) . toHaveBeenCalledTimes ( 2 ) ;
114
114
expect ( spy . mock . calls [ 0 ] ) . toEqual ( [ intl . formatRelativeTime ( 0 ) ] ) ;
115
115
116
116
expect (
0 commit comments