Created
February 8, 2017 15:28
-
-
Save yleflour/6ca4e0d9aaeb4ae993aff4c7dbcc82d0 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
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