MCPcopy
hub / github.com/marmelab/react-admin / wrapper

Function wrapper

packages/ra-core/src/controller/list/useExpanded.spec.tsx:8–12  ·  view source on GitHub ↗
({ children })

Source from the content-addressed store, hash-verified

6
7describe('useExpanded', () => {
8 const wrapper = ({ children }) => (
9 <StoreContextProvider value={memoryStore()}>
10 {children}
11 </StoreContextProvider>
12 );
13
14 it('should return false by default', () => {
15 const { result } = renderHook(() => useExpanded('foo', 123), {

Callers

nothing calls this directly

Calls 1

memoryStoreFunction · 0.90

Tested by

no test coverage detected