Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/alibaba/hooks
/ index.spec.ts
File
index.spec.ts
packages/hooks/src/useThrottleFn/__tests__/index.spec.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ act,
type
RenderHookResult, renderHook } from
'@testing-library/react'
;
2
import
{ describe, expect, test } from
'vitest'
;
3
import
{ sleep } from
'../../utils/testingHelpers'
;
4
import
useThrottleFn from
'../index'
;
Callers
nothing calls this directly
Calls
4
sleep
Function · 0.90
run
Method · 0.80
cancel
Method · 0.80
setUp
Function · 0.70
Tested by
no test coverage detected