Skip to content

Instantly share code, notes, and snippets.

@ErrorPro
Created May 14, 2018 19:33
Show Gist options
  • Select an option

  • Save ErrorPro/2ba6a12be6fbc2af32d5e0eee7c963b3 to your computer and use it in GitHub Desktop.

Select an option

Save ErrorPro/2ba6a12be6fbc2af32d5e0eee7c963b3 to your computer and use it in GitHub Desktop.
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