标签: reactjs enzyme react-router-v4 react-router-dom
我正在尝试测试此处定义的PrivateRoute:
PrivateRoute
https://tylermcginnis.com/react-router-protected-routes-authentication/
我测试了<Redirect />,但无法测试<Component />任何建议?
<Redirect />
<Component />