File tree Expand file tree Collapse file tree 8 files changed +46
-87
lines changed
Expand file tree Collapse file tree 8 files changed +46
-87
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import { RouteComponentProps } from 'react-router-dom' ;
3+
4+ type Props = { } & RouteComponentProps < any , any > ;
5+
6+ function About ( { } : Props ) {
7+ return (
8+ < div >
9+ < h1 > About</ h1 >
10+ </ div >
11+ ) ;
12+ }
13+
14+ About . displayName = 'About' ;
15+
16+ export default About ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import { shallow } from 'enzyme' ;
3+ import { MemoryRouter } from 'react-router' ;
4+ import About from '../About' ;
5+
6+ describe ( 'About page' , ( ) => {
7+ it ( 'renders as expected' , ( ) => {
8+ const props = {
9+ actions : { } ,
10+ } ;
11+ const component = shallow (
12+ < div >
13+ < MemoryRouter >
14+ < About { ...props } />
15+ </ MemoryRouter >
16+ </ div > ,
17+ ) ;
18+ expect ( component ) . toMatchSnapshot ( ) ;
19+ } ) ;
20+ } ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- // @flow
2-
3- // #region imports
41import { compose } from 'redux' ;
52import About from './About' ;
63import withEnterAnimation from '../../hoc/withEnterAnimation' ;
7- // #endregion
84
95export default compose ( withEnterAnimation ( /* no option yet */ ) ) ( About ) ;
Original file line number Diff line number Diff line change 8282 "@types/react" : " ^16.7.6" ,
8383 "@types/react-dom" : " ^16.0.9" ,
8484 "@types/react-motion" : " ^0.0.27" ,
85- "@types/react-router" : " ^4.4 .3" ,
85+ "@types/react-router" : " ^5.1 .3" ,
8686 "@types/react-router-bootstrap" : " ^0.24.5" ,
87- "@types/react-router-dom" : " ^4.3.1 " ,
87+ "@types/react-router-dom" : " ^5.1.3 " ,
8888 "@types/reactstrap" : " ^6.4.3" ,
8989 "@types/redux" : " ^3.6.0" ,
9090 "@types/styled-components" : " ^4.4.0" ,
Original file line number Diff line number Diff line change 983983 "@types/react" "*"
984984 "@types/react-router" "*"
985985
986- "@types/react-router-dom@^4.3.1 ":
987- version "4.3.1 "
988- resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-4.3.1. tgz#71fe2918f8f60474a891520def40a63997dafe04 "
989- integrity sha512-GbztJAScOmQ/7RsQfO4cd55RuH1W4g6V1gDW3j4riLlt+8yxYLqqsiMzmyuXBLzdFmDtX/uU2Bpcm0cmudv44A ==
986+ "@types/react-router-dom@^5.1.3 ":
987+ version "5.1.3 "
988+ resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-5.1.3. tgz#b5d28e7850bd274d944c0fbbe5d57e6b30d71196 "
989+ integrity sha512-pCq7AkOvjE65jkGS5fQwQhvUp4+4PVD9g39gXLZViP2UqFiFzsEpB3PKf0O6mdbKsewSK8N14/eegisa/0CwnA ==
990990 dependencies:
991991 "@types/history" "*"
992992 "@types/react" "*"
10001000 "@types/history" "*"
10011001 "@types/react" "*"
10021002
1003- "@types/react-router@^4.4 .3":
1004- version "4.4 .3"
1005- resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-4.4 .3.tgz#ea68b4021cb576866f83365b2201411537423d50 "
1006- integrity sha512-8GmjakEBFNCLJbpg9jtDp1EDvFP0VkIPPKBpVwmB3Q+9whFoHu8rluMUXUE5SoGkEQvVOtgJzWmUsJojNpFMQQ ==
1003+ "@types/react-router@^5.1 .3":
1004+ version "5.1 .3"
1005+ resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1 .3.tgz#7c7ca717399af64d8733d8cb338dd43641b96f2d "
1006+ integrity sha512-0gGhmerBqN8CzlnDmSgGNun3tuZFXerUclWkqEhozdLaJtfcJRUTGkKaEKk+/MpHd1KDS1+o2zb/3PkBUiv2qQ ==
10071007 dependencies:
10081008 "@types/history" "*"
10091009 "@types/react" "*"
You can’t perform that action at this time.
0 commit comments