Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dailydotdev/apps
/ useDebounceFn.spec.ts
File
useDebounceFn.spec.ts
packages/shared/src/hooks/useDebounceFn.spec.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ renderHook, waitFor } from
'@testing-library/react'
;
2
import
useDebounceFn from
'./useDebounceFn'
;
3
4
it(
'should call the callback only once'
,
async
() => {
Callers
nothing calls this directly
Calls
2
useDebounceFn
Function · 0.85
callback
Function · 0.50
Tested by
no test coverage detected