Closed bpetetot closed 7 years ago
We could test mapStateToProps
and mapDispatchToProps
individually.
it('should returns xxxx', () => {
const state = {
xxx: {
},
yyy: {
},
}
expect(mapStateToProps(state, { id: 12 })).toMatchSnapshot()
})
Move the function
snapContainer
ofsrc/gui/components/props/input/input.spec.js
intomisc/snap
, with following refactoring :