Created
February 19, 2018 00:14
-
-
Save vitkon/20846c29dfb7ffb5c533678ebf495f51 to your computer and use it in GitHub Desktop.
Poi article files
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 * as React from 'react'; | |
import { shallow } from 'enzyme'; | |
import App from '../App'; | |
describe('App', () => { | |
it('should exist', () => { | |
expect(App).toBeDefined(); | |
}); | |
it('should render', () => { | |
const wrapper = shallow(<App />); | |
expect(wrapper.find('h1').contains('My App')).toEqual(true); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment