-
-
Save whtswrng/03d5eca76396e01672568ef4509e5f97 to your computer and use it in GitHub Desktop.
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
test('render Markdown in preview mode', () => { | |
const wrapper = shallow( | |
<MarkdownEditor value="*Hello* Jest!" /> | |
); | |
expect(wrapper).toMatchSnapshot(); | |
wrapper.find('[name="toggle-preview"]').simulate('click'); | |
expect(wrapper).toMatchSnapshot(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment