@@ -396,16 +396,19 @@ describe('Transition', () => {
396396 } )
397397
398398 describe ( 'onComplete' , ( ) => {
399- it ( 'is called with (null, props) when transition completed ' , ( done ) => {
399+ it ( 'is called when transition completes ' , ( done ) => {
400400 const onComplete = sandbox . spy ( )
401401 const handleComplete = ( ...args ) => {
402402 onComplete ( ...args )
403403
404404 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+ )
409412
410413 done ( )
411414 }
@@ -440,16 +443,19 @@ describe('Transition', () => {
440443 } )
441444
442445 describe ( 'onHide' , ( ) => {
443- it ( 'is called with (null, props) when hidden' , ( done ) => {
446+ it ( 'is called when hidden' , ( done ) => {
444447 const onHide = sandbox . spy ( )
445448 const handleHide = ( ...args ) => {
446449 onHide ( ...args )
447450
448451 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+ )
453459
454460 done ( )
455461 }
@@ -509,16 +515,19 @@ describe('Transition', () => {
509515 } )
510516
511517 describe ( 'onShow' , ( ) => {
512- it ( 'is called with (null, props) when shown' , ( done ) => {
518+ it ( 'is called when shown' , ( done ) => {
513519 const onShow = sandbox . spy ( )
514520 const handleShow = ( ...args ) => {
515521 onShow ( ...args )
516522
517523 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+ )
522531
523532 done ( )
524533 }
@@ -552,16 +561,19 @@ describe('Transition', () => {
552561 } )
553562
554563 describe ( 'onStart' , ( ) => {
555- it ( 'is called with (null, props) when transition started' , ( done ) => {
564+ it ( 'is called when transition started' , ( done ) => {
556565 const onStart = sandbox . spy ( )
557566 const handleStart = ( ...args ) => {
558567 onStart ( ...args )
559568
560569 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+ )
565577
566578 done ( )
567579 }
0 commit comments