@@ -48,7 +48,7 @@ describe('#react-wizard-flow', () => {
4848 < TestWizardFlow . Provider initialStep = { TestSteps . step1 } steps = { STEPS } /> ,
4949 ) ;
5050 expect ( getByText ( 'Step 1' ) ) . toBeVisible ( ) ;
51- fireEvent . click ( getByText ( " To Step 2" ) ) ;
51+ fireEvent . click ( getByText ( ' To Step 2' ) ) ;
5252 expect ( getByText ( 'Step 2' ) ) . toBeVisible ( ) ;
5353 const results = await axe ( container ) ;
5454 expect ( results ) . toHaveNoViolations ( ) ;
@@ -57,11 +57,15 @@ describe('#react-wizard-flow', () => {
5757 it ( 'should have a functioning close callback' , async ( ) => {
5858 const handleClose = jest . fn ( ) ;
5959 const { container, getByText } = render (
60- < TestWizardFlow . Provider initialStep = { TestSteps . step1 } steps = { STEPS } onClose = { handleClose } /> ,
60+ < TestWizardFlow . Provider
61+ initialStep = { TestSteps . step1 }
62+ steps = { STEPS }
63+ onClose = { handleClose }
64+ /> ,
6165 ) ;
6266 expect ( getByText ( 'Step 1' ) ) . toBeVisible ( ) ;
6367 expect ( handleClose . mock . calls ) . toHaveLength ( 0 ) ;
64- fireEvent . click ( getByText ( " Close" ) ) ;
68+ fireEvent . click ( getByText ( ' Close' ) ) ;
6569 expect ( getByText ( 'Step 1' ) ) . toBeVisible ( ) ;
6670 expect ( handleClose . mock . calls ) . toHaveLength ( 1 ) ;
6771 const results = await axe ( container ) ;
@@ -74,10 +78,10 @@ describe('#react-wizard-flow', () => {
7478 < TestWizardFlow . Provider initialStep = { TestSteps . step1 } steps = { STEPS } /> ,
7579 ) ;
7680 expect ( getByText ( 'Step 1' ) ) . toBeVisible ( ) ;
77- fireEvent . click ( getByText ( " Close" ) ) ;
81+ fireEvent . click ( getByText ( ' Close' ) ) ;
7882 expect ( getByText ( 'Step 1' ) ) . toBeVisible ( ) ;
7983 const results = await axe ( container ) ;
8084 expect ( results ) . toHaveNoViolations ( ) ;
81- } ) . not . toThrow ( )
85+ } ) . not . toThrow ( ) ;
8286 } ) ;
8387} ) ;
0 commit comments