@@ -200,10 +200,8 @@ describe('SignTab', () => {
200200
201201 expect ( mockRouter . push ) . toHaveBeenCalledWith ( {
202202 name : 'ValidationFile' ,
203- params : {
204- uuid : 'test-uuid' ,
205- isAfterSigned : true ,
206- } ,
203+ params : { uuid : 'test-uuid' } ,
204+ state : { isAfterSigned : true } ,
207205 } )
208206 } )
209207
@@ -215,10 +213,8 @@ describe('SignTab', () => {
215213
216214 expect ( mockRouter . push ) . toHaveBeenCalledWith ( {
217215 name : 'ValidationFileExternal' ,
218- params : {
219- uuid : 'test-uuid' ,
220- isAfterSigned : true ,
221- } ,
216+ params : { uuid : 'test-uuid' } ,
217+ state : { isAfterSigned : true } ,
222218 } )
223219 } )
224220 } )
@@ -232,11 +228,8 @@ describe('SignTab', () => {
232228
233229 expect ( mockRouter . push ) . toHaveBeenCalledWith ( {
234230 name : 'ValidationFile' ,
235- params : {
236- uuid : 'test-uuid' ,
237- isAfterSigned : false ,
238- isAsync : true ,
239- } ,
231+ params : { uuid : 'test-uuid' } ,
232+ state : { isAfterSigned : false , isAsync : true } ,
240233 } )
241234 } )
242235
@@ -248,11 +241,8 @@ describe('SignTab', () => {
248241
249242 expect ( mockRouter . push ) . toHaveBeenCalledWith ( {
250243 name : 'ValidationFileExternal' ,
251- params : {
252- uuid : 'test-uuid' ,
253- isAfterSigned : false ,
254- isAsync : true ,
255- } ,
244+ params : { uuid : 'test-uuid' } ,
245+ state : { isAfterSigned : false , isAsync : true } ,
256246 } )
257247 } )
258248 } )
@@ -268,11 +258,8 @@ describe('SignTab', () => {
268258 // onSigningStarted should be called in mounted hook and push to router
269259 expect ( mockRouter . push ) . toHaveBeenCalledWith ( {
270260 name : 'ValidationFile' ,
271- params : {
272- uuid : 'progress-uuid' ,
273- isAfterSigned : false ,
274- isAsync : true ,
275- } ,
261+ params : { uuid : 'progress-uuid' } ,
262+ state : { isAfterSigned : false , isAsync : true } ,
276263 } )
277264 } )
278265
0 commit comments