Details
-
Bug
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
None
Description
The mockProps function, when it needs to check the prevailing dataKey, is looking in the props. But that no longer works, since we switched from the style:
const connectedComponent = stripes.connect(Component); return <connectionComponent dataKey={val} ... />;
To
const connectedComponent = stripes.connect(Component, { dataKey: val }); return <connectionComponent ... />;
Instead, we now need to pass the prevailing dataKey explicitly into mockProps, which means that substitute needs to know it.