2d5b06f07a
* add new withSearchedProducts hoc includes tests * convert to functional component and wrap with new hoc * remove dependency between tests * Fix typo with PropTypes bool Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com> * remove unnecessary specific import * fix bug introduced on refactor for selected prop recalc * fix tests that were testing the wrong expectation - also improved mocks a bit so they are a bit more realistic for the purpose of the test coverage. * remove unnecessary Fragment * tweak propType definitions and remove defaults - this keeps argument expectations in sync with wrapped component and reduces chance of unexpected behaviour if `SearchListControl` logic changes. * remove lodash.find dependency. |
||
---|---|---|
.. | ||
with-product.js | ||
with-searched-products.js |