Skip to content

Instantly share code, notes, and snippets.

@vitkon
Created Feb 19, 2018
Embed
What would you like to do?
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