Created
May 14, 2018 19:33
-
-
Save ErrorPro/2ba6a12be6fbc2af32d5e0eee7c963b3 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 Dump from './Dump'; | |
| import renderer from 'react-test-renderer'; | |
| test('dump components renders initially', () => { | |
| const component = renderer.create( | |
| <Dump onChange={() => {}} label="Hi i am a dump component" /> | |
| ); | |
| expect(component.toJSON()).toMatchSnapshot(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment