File tree Expand file tree Collapse file tree 3 files changed +0
-43
lines changed
Expand file tree Collapse file tree 3 files changed +0
-43
lines changed Original file line number Diff line number Diff line change @@ -4,23 +4,8 @@ import { shallow } from 'enzyme'
44import { Navbar } from 'reactstrap'
55
66describe ( '(Layout) PageLayout' , ( ) => {
7- it ( 'renders as a <div>' , ( ) => {
8- shallow ( < PageLayout /> ) . should . have . tagName ( 'div' )
9- } )
10-
117 it ( 'renders a <NavBar />' , ( ) => {
128 const wrapper = shallow ( < PageLayout /> )
139 expect ( wrapper . find ( Navbar ) ) . to . have . length ( 1 )
1410 } )
15-
16- it ( 'renders its children inside of the viewport' , ( ) => {
17- const Child = ( ) => < h2 > child</ h2 >
18- shallow (
19- < PageLayout >
20- < Child />
21- </ PageLayout >
22- )
23- . find ( '.page-layout__viewport' )
24- . should . contain ( < Child /> )
25- } )
2611} )
Original file line number Diff line number Diff line change 1- import CounterRoute from 'routes/Counter'
2-
3- describe ( '(Route) Counter' , ( ) => {
4- it ( 'returns a route configuration object' , ( ) => {
5- expect ( typeof CounterRoute ( { } ) ) . to . equal ( 'object' )
6- } )
7-
8- it ( 'has a path \'counter\'' , ( ) => {
9- expect ( CounterRoute ( { } ) . path ) . to . equal ( 'counter' )
10- } )
11- } )
Original file line number Diff line number Diff line change 1- import HomeRoute from 'routes/Home'
2-
3- describe ( '(Route) Home' , ( ) => {
4- let _component
5-
6- beforeEach ( ( ) => {
7- _component = HomeRoute . component ( )
8- } )
9-
10- it ( 'Should return a route configuration object' , ( ) => {
11- expect ( typeof HomeRoute ) . to . equal ( 'object' )
12- } )
13-
14- it ( 'Should define a route component' , ( ) => {
15- expect ( _component . type ) . to . equal ( 'div' )
16- } )
17- } )
You can’t perform that action at this time.
0 commit comments