Skip to content

Commit 547bc81

Browse files
committed
Fix lint
Signed-off-by: Milos Dzepina <milos@aragon.org>
1 parent d483516 commit 547bc81

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/core/components/clipboard/clipboard.test.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)