Skip to content

Instantly share code, notes, and snippets.

@15Dkatz
Created January 21, 2018 21:46
Show Gist options
  • Save 15Dkatz/0214c33084a385939fa02bb466c2a999 to your computer and use it in GitHub Desktop.
Save 15Dkatz/0214c33084a385939fa02bb466c2a999 to your computer and use it in GitHub Desktop.
import React from 'react';
import { shallow } from 'enzyme';
import App from './App';
describe('App', () => {
const app = shallow(<App />);
it('renders the title', () => {
expect(app.find('h1').exists()).toBe(true);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment