This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lazyLoaded = lazyload({ | |
height: 400, | |
once: true, | |
offset: 0, | |
placeholder: <QuLoading show />, | |
})(JobCard) | |
export default connect(mapStateToProps, mapDispatchToProps, mergeProps)(lazyLoaded) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports[`<JobCard /> should render correct structure 2`] = ` | |
<QuLoading | |
overlay={false} | |
show={true} | |
/> | |
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('<JobCard />', () => { | |
it('should render correct structure', () => { | |
window.scrollTo(0, 500) | |
const component = shallow( | |
<JobCard />, | |
{ context: {store: mockStore(initialState)}} | |
).first().shallow() | |