Skip to content

Commit 098fbe4

Browse files
committed
Format the code
1 parent 5c89567 commit 098fbe4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

test/puppeteer/demo.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ it('reroutes enter presses on menu items as clicks', async () => {
9090
await page.click('#menu-button');
9191
await menuOpen();
9292

93+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
9394
page.on('dialog', async dialog => {
9495
alertAppeared = true;
9596
await dialog.dismiss();

test/test-component.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Imports
2-
import React, { useState } from 'react';
2+
import React from 'react';
33
import useDropdownMenu from '../src/use-dropdown-menu';
44

55
// A mock component for testing the Hook
@@ -26,9 +26,7 @@ const TestComponent: React.FC = () => {
2626
</a>
2727
</div>
2828

29-
<button id='second-button'>
30-
Another Button
31-
</button>
29+
<button id='second-button'>Another Button</button>
3230

3331
<span id='is-open-indicator'>{isOpen ? 'true' : 'false'}</span>
3432
</React.Fragment>

0 commit comments

Comments
 (0)