MCPcopy Create free account
hub / github.com/react-dnd/react-dnd / wrapInTestContext

Function wrapInTestContext

examples/shared/wrapInTestContext.js:5–13  ·  view source on GitHub ↗
(DecoratedComponent)

Source from the content-addressed store, hash-verified

3import { DragDropContext } from 'react-dnd';
4
5export default function wrapInTestContext(DecoratedComponent) {
6 class TestStub extends Component {
7 render() {
8 return <DecoratedComponent {...this.props} />;
9 }
10 }
11
12 return DragDropContext(TestBackend)(TestStub);
13}

Callers 1

Box-test.jsFile · 0.85

Calls 1

DragDropContextFunction · 0.90

Tested by

no test coverage detected