File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import { configure , shallow , render } from 'enzyme' ;
3+
4+ import GraphsContainer from '../../../app/containers/GraphsContainer'
5+ import SpeedChart from '../../../app/charts/speed-chart'
6+
7+
8+
19xdescribe ( '<GraphsContainer />' , ( ) => {
2- it ( 'should' ) ;
10+ it ( 'should' , ( ) => {
11+ const wrapper = shallow ( < GraphsContainer /> ) ;
12+ expect ( wrapper . contains ( < SpeedChart /> ) ) . toBe ( true )
13+ } ) ;
314} ) ;
Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ import { Link } from 'react-router-dom';
88describe ( '<SidebarContainer />' , ( ) => {
99 it ( 'should render an <img> tag with the Chronos logo' , ( ) => {
1010 const wrapper = shallow ( < SidebarContainer /> ) ;
11- console . log ( wrapper . debug ( { verbose : true } ) )
12-
11+
1312 expect ( wrapper . contains ( < img alt = "Chronos Logo" id = "serviceDashLogo" src = "../assets/icon2Cropped.png" /> ) ) . toBe ( true ) ;
1413 } ) ;
1514 it ( "should render a <Link /> with the label as 'Home'" , ( ) => {
You can’t perform that action at this time.
0 commit comments