@@ -32,7 +32,7 @@ describe('useToast', () => {
32
32
} ;
33
33
34
34
it ( 'handles defaults' , function ( ) {
35
- let { closeButtonProps, toastProps, contentProps, titleProps} = renderToastHook ( { toast :{ } } , { close} ) ;
35
+ let { closeButtonProps, toastProps, contentProps, titleProps} = renderToastHook ( { toast : { } } , { close} ) ;
36
36
37
37
expect ( toastProps . role ) . toBe ( 'alertdialog' ) ;
38
38
expect ( contentProps . role ) . toBe ( 'alert' ) ;
@@ -42,15 +42,15 @@ describe('useToast', () => {
42
42
} ) ;
43
43
44
44
it ( 'handles close button' , function ( ) {
45
- let { closeButtonProps} = renderToastHook ( { toast :{ key : 1 } } , { close} ) ;
45
+ let { closeButtonProps} = renderToastHook ( { toast : { key : 1 } } , { close} ) ;
46
46
closeButtonProps . onPress ( ) ;
47
47
48
48
expect ( close ) . toHaveBeenCalledTimes ( 1 ) ;
49
49
expect ( close ) . toHaveBeenCalledWith ( 1 ) ;
50
50
} ) ;
51
51
52
52
it ( 'passes through data attributes' , function ( ) {
53
- let { toastProps} = renderToastHook ( { toast :{ } , 'data-test-id' : 'toast' } , { close} ) ;
53
+ let { toastProps} = renderToastHook ( { toast : { } , 'data-test-id' : 'toast' } , { close} ) ;
54
54
55
55
expect ( toastProps [ 'data-test-id' ] ) . toBe ( 'toast' ) ;
56
56
} ) ;
0 commit comments