Add test for return val of createInstantSearch

This commit is contained in:
Gordon
2018-10-18 09:23:49 -05:00
parent 11f7d32c69
commit ba7d277033
@@ -8,7 +8,7 @@ import {
} from 'react-instantsearch-core';
() => {
const InstantSearch = createInstantSearch(() => {}, {Root: 'div', props: {className: `widget`}});
const InstantSearch = createInstantSearch(() => ({}), {Root: 'div', props: {className: `widget`}});
<InstantSearch>
<div></div>
@@ -128,3 +128,10 @@ import {
<ComposedMyComponent additionalProp='test' />;
};
() => {
const InstantSearch = createInstantSearch(
() => null, // $ExpectError
{}
);
};