File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react' ;
2- < < << << < HEAD
32import ReactDOM from 'react-dom' ;
4- import { shallow } from 'enzyme' ;
5- = === ===
63import { shallow , mount } from 'enzyme' ;
7- > >>> >>> master
84import App from '../../app/App' ;
9-
105describe ( '<App />' , ( ) => {
116 let wrapper : any ;
127
138 beforeAll ( ( ) => {
149 wrapper = shallow ( < App /> ) ;
1510 } ) ;
16-
11+ it ( 'should render <Splash /> on the first visit' , ( ) => {
12+ expect ( wrapper ) . toBeDefined ( ) ;
13+ } ) ;
1714 it ( 'renders without crashing' , ( ) => {
1815 const div = document . createElement ( 'div' ) ;
1916 ReactDOM . render ( < App /> , div ) ;
2017 ReactDOM . unmountComponentAtNode ( div ) ;
2118 } ) ;
22-
23- it ( 'should render <Splash /> on the first visit' , ( ) => {
24- expect ( wrapper ) . toBeDefined ( ) ;
25- } ) ;
2619 it ( 'should render <DashboardContainer /> if not on the first visit' , ( ) => {
2720 jest . useFakeTimers ( ) ;
2821 wrapper = mount ( < App /> ) ;
You can’t perform that action at this time.
0 commit comments