MCPcopy 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

1const assertFunction = (fn) => {
2 it(`${fn.name || 'it'} should be a function`, () => {
3 expect(fn).to.be.a('function')
4 })
5}
6
7export default assertFunction

Callers 7

warnOnce.spec.jsFile · 0.85
useStorage.spec.jsFile · 0.85
assertHookFunction · 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…