Skip to content

Instantly share code, notes, and snippets.

@15Dkatz
Created January 21, 2018 21:46
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 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