@@ -50,7 +50,7 @@ describe('translatePage', () => {
50
50
} ;
51
51
translatePage ( { page, actions } as any , options ) ;
52
52
53
- expect ( actions . deletePage ) . toBeCalledWith ( page ) ;
53
+ expect ( actions . deletePage ) . toHaveBeenCalledWith ( page ) ;
54
54
expect ( actions . createPage ) . toHaveBeenCalledTimes ( 3 ) ;
55
55
expect ( actions . createPage ) . toHaveBeenNthCalledWith ( 1 , {
56
56
...page ,
@@ -118,7 +118,7 @@ describe('translatePage', () => {
118
118
} ;
119
119
translatePage ( { page, actions } as any , options ) ;
120
120
121
- expect ( actions . deletePage ) . toBeCalledWith ( page ) ;
121
+ expect ( actions . deletePage ) . toHaveBeenCalledWith ( page ) ;
122
122
expect ( actions . createPage ) . toHaveBeenCalledTimes ( 1 ) ;
123
123
expect ( actions . createPage ) . toHaveBeenNthCalledWith ( 1 , {
124
124
...page ,
@@ -139,7 +139,7 @@ describe('translatePage', () => {
139
139
} ;
140
140
translatePage ( { page, actions } as any , options ) ;
141
141
142
- expect ( actions . deletePage ) . toBeCalledWith ( page ) ;
142
+ expect ( actions . deletePage ) . toHaveBeenCalledWith ( page ) ;
143
143
expect ( actions . createPage ) . toHaveBeenCalledTimes ( 1 ) ;
144
144
expect ( actions . createPage ) . toHaveBeenNthCalledWith ( 1 , {
145
145
...page ,
@@ -162,7 +162,7 @@ describe('translatePage', () => {
162
162
} ;
163
163
translatePage ( { page, actions } as any , options ) ;
164
164
165
- expect ( actions . deletePage ) . toBeCalledWith ( page ) ;
165
+ expect ( actions . deletePage ) . toHaveBeenCalledWith ( page ) ;
166
166
expect ( actions . createPage ) . toHaveBeenCalledTimes ( 1 ) ;
167
167
expect ( actions . createPage ) . toHaveBeenNthCalledWith ( 1 , {
168
168
...page ,
@@ -186,7 +186,7 @@ describe('translatePage', () => {
186
186
} ;
187
187
translatePage ( { page, actions } as any , options ) ;
188
188
189
- expect ( actions . deletePage ) . toBeCalledWith ( page ) ;
189
+ expect ( actions . deletePage ) . toHaveBeenCalledWith ( page ) ;
190
190
expect ( actions . createPage ) . toHaveBeenCalledTimes ( 1 ) ;
191
191
expect ( actions . createPage ) . toHaveBeenNthCalledWith ( 1 , {
192
192
...page ,
@@ -217,7 +217,7 @@ describe('translatePage', () => {
217
217
} ;
218
218
translatePage ( { page, actions } as any , options ) ;
219
219
220
- expect ( actions . deletePage ) . toBeCalledWith ( page ) ;
220
+ expect ( actions . deletePage ) . toHaveBeenCalledWith ( page ) ;
221
221
expect ( actions . createPage ) . toHaveBeenCalledTimes ( 1 ) ;
222
222
expect ( actions . createPage ) . toHaveBeenNthCalledWith ( 1 , {
223
223
...page ,
@@ -252,8 +252,8 @@ describe('translatePage', () => {
252
252
253
253
translatePage ( { page, actions } as any , options ) ;
254
254
255
- expect ( actions . deletePage ) . not . toBeCalled ( ) ;
256
- expect ( actions . createPage ) . not . toBeCalled ( ) ;
255
+ expect ( actions . deletePage ) . not . toHaveBeenCalled ( ) ;
256
+ expect ( actions . createPage ) . not . toHaveBeenCalled ( ) ;
257
257
} ) ;
258
258
259
259
it ( 'should obey page blacklists' , ( ) => {
0 commit comments