Skip to content

Commit

Permalink
test: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyib committed Aug 22, 2023
1 parent 6b4388d commit c8518f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hooks/src/useEventListener/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ describe('useEventListener', () => {
expect(state).toBe(1);
});

it('test "enable" parameter', async () => {
let state: number = 0;
it('test "enable" parameter', () => {
let state = 0;
let enable = true;
const onClick = () => state++;
const { rerender, unmount } = renderHook(() =>
Expand Down

0 comments on commit c8518f9

Please sign in to comment.