Skip to content

Commit

Permalink
Replace default App test with enzyme shallow render test
Browse files Browse the repository at this point in the history
  • Loading branch information
hotblac committed Aug 7, 2018
1 parent b5959e6 commit 68ecc78
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/App.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { shallow } from 'enzyme';
import App from './App';

it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div);
const wrapper = shallow(<App/>)
expect(wrapper).toBeDefined();
});

0 comments on commit 68ecc78

Please sign in to comment.