Skip to content

Commit 4981d6f

Browse files
committed
Remove use of obsolete test cleanup method
See testing-library/react-testing-library#430
1 parent 4cc50b0 commit 4981d6f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { fireEvent } from '@testing-library/react';
2-
import { act, renderHook } from 'react-hooks-testing-library';
2+
import { act, renderHook } from '@testing-library/react-hooks';
33
import { useWindowScrollPosition } from '.';
44

55
test('change window scroll position', () => {
6-
const { result, unmount } = renderHook(() => useWindowScrollPosition());
6+
const { result } = renderHook(() => useWindowScrollPosition());
77
expect(result.current.join()).toBe('0,0');
88

99
act(() => {
@@ -13,5 +13,4 @@ test('change window scroll position', () => {
1313
});
1414

1515
expect(result.current.join()).toBe('123,456');
16-
unmount();
1716
});

0 commit comments

Comments
 (0)