Skip to content

Commit 966f8b7

Browse files
committed
created test for Diffroute jsx
1 parent 38bb8cb commit 966f8b7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/app/__tests__/DiffRoute.test.jsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from 'react';
2+
import { configure, shallow } from 'enzyme'
3+
import Adapter from 'enzyme-adapter-react-16';
4+
import {
5+
MemoryRouter as Router, Route, NavLink, Switch,
6+
} from 'react-router-dom';
7+
8+
import DiffRoute from '../components/DiffRoute.jsx';
9+
10+
11+
configure({ adapter: new Adapter() });
12+
13+
// check if our component has a component tag router
14+
// check if router component has a dive with a navlik component
15+
// check if component has a switch tag
16+
// check if routes in switch have appropriate props

0 commit comments

Comments
 (0)