Created
December 16, 2016 10:31
-
-
Save hschaeidt/0534e948aa8e101f665e9a5d5931bf27 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React from 'react'; | |
import { shallow } from 'enzyme'; | |
const SampleComp = () => ( | |
<div> | |
<span>My Component</span> | |
</div> | |
); | |
describe('<SampleComp />', () => { | |
it('should match the snapshot', () => { | |
const wrapper = shallow(<SampleComp />); | |
expect(wrapper.getNodes()).toMatchSnapshot(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reactlly Cool...