MCPcopy Create free account
hub / github.com/drcmda/react-contextual / isValidContext

Function isValidContext

tests/context.js:10–14  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

8} from '../src/'
9
10function isValidContext(context) {
11 expect(Object.keys(context)).toEqual(
12 expect.arrayContaining(['Provider', 'Consumer'])
13 )
14}
15
16it('should always create a valid default context', () => {
17 isValidContext(ProviderContext)

Callers 1

context.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected