Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yleflour
Created February 8, 2017 15:28
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 yleflour/6ca4e0d9aaeb4ae993aff4c7dbcc82d0 to your computer and use it in GitHub Desktop.
Save yleflour/6ca4e0d9aaeb4ae993aff4c7dbcc82d0 to your computer and use it in GitHub Desktop.
import React from 'react';
import 'react-native';
import { shallow } from 'enzyme';
import { shallowToJson } from 'enzyme-to-json';
import LargeButton from '../LargeButton';
jest.mock('Materniteam/src/components/FadeIn.js');
describe('<LargeButton />', () => {
it('displays a large button', () => {
const wrapper = shallow(
<LargeButton>
Test bouton
</LargeButton>
);
expect(shallowToJson(wrapper)).toMatchSnapshot();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment