Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.