@@ -30,7 +30,9 @@ describe('MobileTray', () => {
30
30
31
31
it ( 'does not render overlay when closed' , ( ) => {
32
32
render ( < MobileTray { ...defaultProps } isOpen = { false } /> ) ;
33
- expect ( screen . queryByTestId ( 'ockMobileTrayOverlay' ) ) . not . toBeInTheDocument ( ) ;
33
+ expect (
34
+ screen . queryByTestId ( 'ockMobileTrayOverlay' ) ,
35
+ ) . not . toBeInTheDocument ( ) ;
34
36
} ) ;
35
37
36
38
it ( 'calls onClose when overlay is clicked' , ( ) => {
@@ -41,7 +43,9 @@ describe('MobileTray', () => {
41
43
42
44
it ( 'calls onClose when Escape key is pressed on overlay' , ( ) => {
43
45
render ( < MobileTray { ...defaultProps } /> ) ;
44
- fireEvent . keyDown ( screen . getByTestId ( 'ockDismissableLayer' ) , { key : 'Escape' } ) ;
46
+ fireEvent . keyDown ( screen . getByTestId ( 'ockDismissableLayer' ) , {
47
+ key : 'Escape' ,
48
+ } ) ;
45
49
expect ( defaultProps . onClose ) . toHaveBeenCalled ( ) ;
46
50
} ) ;
47
51
@@ -59,7 +63,9 @@ describe('MobileTray', () => {
59
63
/> ,
60
64
) ;
61
65
expect ( screen . getByTestId ( 'ockMobileTray' ) ) . toHaveClass ( 'custom-tray' ) ;
62
- expect ( screen . getByTestId ( 'ockMobileTrayOverlay' ) ) . toHaveClass ( 'custom-overlay' ) ;
66
+ expect ( screen . getByTestId ( 'ockMobileTrayOverlay' ) ) . toHaveClass (
67
+ 'custom-overlay' ,
68
+ ) ;
63
69
} ) ;
64
70
65
71
it ( 'applies custom className when provided' , ( ) => {
0 commit comments