We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 032b91b commit 51f91dfCopy full SHA for 51f91df
1 file changed
__tests__/app/App.test.tsx
@@ -1,15 +1,21 @@
1
-
2
import React from 'react';
+import ReactDOM from 'react-dom';
3
import { shallow } from 'enzyme';
4
import App from '../../app/App';
5
+
6
describe('<App />', () => {
7
let wrapper: any;
8
beforeAll(() => {
9
wrapper = shallow(<App />);
10
});
11
12
+ it('renders without crashing', () => {
13
+ const div = document.createElement('div');
14
+ ReactDOM.render(<App />, div);
15
+ ReactDOM.unmountComponentAtNode(div);
16
+ });
17
18
it('should render <Splash /> on the first visit', () => {
- expect(wrapper).toMatchSnapshot()
19
+ expect(wrapper).toMatchSnapshot();
20
- // xit('should render <DashboardContainer /> if not on the first visit');
-});
21
+});
0 commit comments