Skip to content

Commit 995ffee

Browse files
committed
test: useThrottlePlugin should work
1 parent 24fba9b commit 995ffee

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/hooks/src/useRequest/__tests__/throttle.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ describe('useRequest/Throttle', () => {
1616

1717
const [{ run }] = renderHook(() =>
1818
useRequest(
19-
() => {
20-
callback()
21-
return getUsername()
22-
},
19+
callback,
2320
{
2421
manual: true,
2522
throttleWait: 100,

0 commit comments

Comments
 (0)