Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antonioru/beautiful-react-hooks
/ assertFunction
Function
assertFunction
test/utils/assertFunction.js:1–5 ·
view source on GitHub ↗
(fn)
Source
from the content-addressed store, hash-verified
1
const
assertFunction = (fn) => {
2
it(`${fn.name ||
'it'
} should be a
function
`, () => {
3
expect(fn).to.be.a(
'function'
)
4
})
5
}
6
7
export
default assertFunction
Callers
7
warnOnce.spec.js
File · 0.85
safeHasOwnProperty.spec.js
File · 0.85
geolocationUtils.spec.js
File · 0.85
useHandlerSetter.spec.js
File · 0.85
useStorage.spec.js
File · 0.85
isAPISupported.spec.js
File · 0.85
assertHook
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…