@@ -396,16 +396,19 @@ describe('Transition', () => {
396
396
} )
397
397
398
398
describe ( 'onComplete' , ( ) => {
399
- it ( 'is called with (null, props) when transition completed ' , ( done ) => {
399
+ it ( 'is called when transition completes ' , ( done ) => {
400
400
const onComplete = sandbox . spy ( )
401
401
const handleComplete = ( ...args ) => {
402
402
onComplete ( ...args )
403
403
404
404
onComplete . should . have . been . calledOnce ( )
405
- onComplete . should . have . been . calledWithMatch ( null , {
406
- duration : 0 ,
407
- status : TRANSITION_STATUS_ENTERED ,
408
- } )
405
+ onComplete . should . have . been . calledWithMatch (
406
+ null ,
407
+ {
408
+ duration : 0 ,
409
+ } ,
410
+ TRANSITION_STATUS_ENTERED ,
411
+ )
409
412
410
413
done ( )
411
414
}
@@ -440,16 +443,19 @@ describe('Transition', () => {
440
443
} )
441
444
442
445
describe ( 'onHide' , ( ) => {
443
- it ( 'is called with (null, props) when hidden' , ( done ) => {
446
+ it ( 'is called when hidden' , ( done ) => {
444
447
const onHide = sandbox . spy ( )
445
448
const handleHide = ( ...args ) => {
446
449
onHide ( ...args )
447
450
448
451
onHide . should . have . been . calledOnce ( )
449
- onHide . should . have . been . calledWithMatch ( null , {
450
- duration : 0 ,
451
- status : TRANSITION_STATUS_EXITED ,
452
- } )
452
+ onHide . should . have . been . calledWithMatch (
453
+ null ,
454
+ {
455
+ duration : 0 ,
456
+ } ,
457
+ TRANSITION_STATUS_EXITED ,
458
+ )
453
459
454
460
done ( )
455
461
}
@@ -509,16 +515,19 @@ describe('Transition', () => {
509
515
} )
510
516
511
517
describe ( 'onShow' , ( ) => {
512
- it ( 'is called with (null, props) when shown' , ( done ) => {
518
+ it ( 'is called when shown' , ( done ) => {
513
519
const onShow = sandbox . spy ( )
514
520
const handleShow = ( ...args ) => {
515
521
onShow ( ...args )
516
522
517
523
onShow . should . have . been . calledOnce ( )
518
- onShow . should . have . been . calledWithMatch ( null , {
519
- duration : 0 ,
520
- status : TRANSITION_STATUS_ENTERED ,
521
- } )
524
+ onShow . should . have . been . calledWithMatch (
525
+ null ,
526
+ {
527
+ duration : 0 ,
528
+ } ,
529
+ TRANSITION_STATUS_ENTERED ,
530
+ )
522
531
523
532
done ( )
524
533
}
@@ -552,16 +561,19 @@ describe('Transition', () => {
552
561
} )
553
562
554
563
describe ( 'onStart' , ( ) => {
555
- it ( 'is called with (null, props) when transition started' , ( done ) => {
564
+ it ( 'is called when transition started' , ( done ) => {
556
565
const onStart = sandbox . spy ( )
557
566
const handleStart = ( ...args ) => {
558
567
onStart ( ...args )
559
568
560
569
onStart . should . have . been . calledOnce ( )
561
- onStart . should . have . been . calledWithMatch ( null , {
562
- duration : 0 ,
563
- status : TRANSITION_STATUS_ENTERING ,
564
- } )
570
+ onStart . should . have . been . calledWithMatch (
571
+ null ,
572
+ {
573
+ duration : 0 ,
574
+ } ,
575
+ TRANSITION_STATUS_ENTERING ,
576
+ )
565
577
566
578
done ( )
567
579
}
0 commit comments