File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/core/components/clipboard Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,11 @@ describe('<Clipboard /> component', () => {
5959 it ( 'does not trigger form submission when clicked' , async ( ) => {
6060 const handleSubmit = jest . fn ( ) ;
6161
62- const variants : IClipboardProps [ 'variant' ] [ ] = [ 'avatar' , 'avatar-white-bg' , 'button' ] ;
62+ const variants : Array < IClipboardProps [ 'variant' ] > = [ 'avatar' , 'avatar-white-bg' , 'button' ] ;
6363
6464 for ( const variant of variants ) {
6565 handleSubmit . mockReset ( ) ;
66- const { unmount } = render (
67- < form onSubmit = { handleSubmit } >
68- { createTestComponent ( { variant } ) }
69- </ form > ,
70- ) ;
66+ const { unmount } = render ( < form onSubmit = { handleSubmit } > { createTestComponent ( { variant } ) } </ form > ) ;
7167
7268 await userEvent . click ( screen . getByRole ( 'button' ) ) ;
7369
You can’t perform that action at this time.
0 commit comments