Skip to content

Instantly share code, notes, and snippets.

@jmacioszek
Created September 6, 2017 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmacioszek/85fdd1b1eda9fe7f5f1664bd127af936 to your computer and use it in GitHub Desktop.
Save jmacioszek/85fdd1b1eda9fe7f5f1664bd127af936 to your computer and use it in GitHub Desktop.
describe('<JobCard />', () => {
it('should render correct structure', () => {
window.scrollTo(0, 500)
const component = shallow(
<JobCard />,
{ context: {store: mockStore(initialState)}}
).first().shallow()
expect(toJson(component.first().shallow())).toMatchSnapshot()
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment