Skip to content

Instantly share code, notes, and snippets.

@vitkon
Created February 19, 2018 00:14
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 vitkon/20846c29dfb7ffb5c533678ebf495f51 to your computer and use it in GitHub Desktop.
Save vitkon/20846c29dfb7ffb5c533678ebf495f51 to your computer and use it in GitHub Desktop.
Poi article files
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