We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66e5ebd commit 268ff06Copy full SHA for 268ff06
1 file changed
src/hook/index.test.tsx
@@ -58,6 +58,12 @@ describe('useBottomScrollListener', () => {
58
59
expect(onBottom).toHaveBeenCalledTimes(1);
60
});
61
+
62
+ it('shall invoke onBottom when there is no place to scroll with triggerOnNoScroll true', () => {
63
+ const onBottom = jest.fn();
64
+ renderHook(() => useBottomScrollListener(onBottom, { triggerOnNoScroll: true }));
65
+ expect(onBottom).toHaveBeenCalledTimes(1);
66
+ });
67
68
69
describe('given a ref it should use the given ref and', () => {
0 commit comments