Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TanStack/db
/ asyncFn
Function
asyncFn
packages/db/tests/utils.test.ts:402–402 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
400
401
it(`should handle
async
functions (which
return
promises)`, () => {
402
const
asyncFn = () => Promise.resolve(42)
403
const
result = asyncFn()
404
expect(isPromiseLike(result)).toBe(true)
405
})
Callers
1
utils.test.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected