+ {({storeState}) => {
+ return {`${storeKey} - ${storeState}`}
+ }}
+
)
}
}
-
- Child.contextTypes = {
- [storeKey]: PropTypes.object.isRequired
- }
-
- return Child
+ return Child
}
const Child = createChild();
- it('should enforce a single child', () => {
+ it('should not enforce a single child', () => {
const store = createStore(() => ({}))
- // Ignore propTypes warnings
+ // Ignore propTypes warning data-
const propTypes = Provider.propTypes
Provider.propTypes = {}
const spy = jest.spyOn(console, 'error').mockImplementation(() => {})
- try {
- expect(() => rtl.render(
-