Can someone please help me to write a jest test case for mapStateProps. I have read all the question everywhere but I was not able to releate to this.
Component code
function mapStateToProps({ leftRecords}) {
return { leftRecords};
}
Reducer:
export const leftRecords= (state = {}, action) => {
switch (action.type) {
case FETCH_LEFT_RECORDS:
return action.leftRecords;
default:
return state;
}
};
When I run the coverage it shows this function is not covered, I have no idea on how to write test case for mapStateProps, could someone please help me over this.