@@ -2,13 +2,12 @@ import React from 'react';
22import { configure , shallow , render } from 'enzyme' ;
33import { Route , Switch } from 'react-router-dom' ;
44
5-
6- import MainContainer from '../../../app/containers/MainContainer'
7- import Home from '../../../app/components/Home'
8- import Copyright from '../../../app/components/Copyright'
9- import Occupied from '../../../app/components/Occupied'
10- import GraphsContainer from '../../../app/containers/GraphsContainer'
11- import About from '../../../app/components/About'
5+ import MainContainer from '../../../app/containers/MainContainer' ;
6+ import Home from '../../../app/components/Home' ;
7+ import Copyright from '../../../app/components/Copyright' ;
8+ import Occupied from '../../../app/components/Occupied' ;
9+ import GraphsContainer from '../../../app/containers/GraphsContainer' ;
10+ import About from '../../../app/components/About' ;
1211import Contact from '../../../app/components/Contact' ;
1312import Settings from '../../../app/components/Settings' ;
1413
@@ -19,42 +18,37 @@ describe('<MainContainer />', () => {
1918 expect ( wrapper . contains ( < Route exact path = "/" component = { Home } /> ) ) . toBe ( true ) ;
2019 } ) ;
2120 it ( 'renders component Copyright' , ( ) => {
22- const wrapper = shallow ( < MainContainer /> ) ;
21+ const wrapper = shallow ( < MainContainer /> ) ;
2322
2423 expect ( wrapper . contains ( < Copyright /> ) ) . toBe ( true ) ;
25-
26- } )
24+ } ) ;
2725 it ( 'renders component Occupied' , ( ) => {
28- const wrapper = shallow ( < MainContainer /> ) ;
26+ const wrapper = shallow ( < MainContainer /> ) ;
2927
3028 expect ( wrapper . contains ( < Route exact path = "/applications" component = { Occupied } /> ) ) . toBe ( true ) ;
29+ } ) ;
30+ it ( 'renders container GraphsContainer' , ( ) => {
31+ const wrapper = shallow ( < MainContainer /> ) ;
3132
32- } )
33- it ( 'renders container GraphsContainer' , ( ) => {
34- const wrapper = shallow ( < MainContainer /> ) ;
35-
36- expect ( wrapper . contains ( < Route exact path = "/applications/:app/:service" component = { GraphsContainer } /> ) ) . toBe ( true ) ;
37-
38- } )
33+ expect (
34+ wrapper . contains (
35+ < Route exact path = "/applications/:app/:service" component = { GraphsContainer } />
36+ )
37+ ) . toBe ( true ) ;
38+ } ) ;
3939 it ( 'renders container About' , ( ) => {
40- const wrapper = shallow ( < MainContainer /> ) ;
41-
42- expect ( wrapper . contains ( < Route path = "/about" component = { About } /> ) ) . toBe ( true ) ;
40+ const wrapper = shallow ( < MainContainer /> ) ;
4341
44- } )
42+ expect ( wrapper . contains ( < Route exact path = "/about" component = { About } /> ) ) . toBe ( true ) ;
43+ } ) ;
4544 it ( 'renders container Contact' , ( ) => {
46- const wrapper = shallow ( < MainContainer /> ) ;
47-
48- expect ( wrapper . contains ( < Route path = "/contact" component = { Contact } /> ) ) . toBe ( true ) ;
45+ const wrapper = shallow ( < MainContainer /> ) ;
4946
50- } )
47+ expect ( wrapper . contains ( < Route exact path = "/contact" component = { Contact } /> ) ) . toBe ( true ) ;
48+ } ) ;
5149 it ( 'renders container Settings' , ( ) => {
52- const wrapper = shallow ( < MainContainer /> ) ;
53-
54- expect ( wrapper . contains ( < Route path = "/settings" component = { Settings } /> ) ) . toBe ( true ) ;
50+ const wrapper = shallow ( < MainContainer /> ) ;
5551
56- } )
57-
52+ expect ( wrapper . contains ( < Route exact path = "/settings" component = { Settings } /> ) ) . toBe ( true ) ;
53+ } ) ;
5854} ) ;
59-
60-
0 commit comments