Commit f4e6099a by Wee

test: bump dev version react-router to 4.4.0 to match the test case

parent 824fce58
import { createMemoryHistory as createHistory } from 'history' import { createMemoryHistory as createHistory } from 'history'
import * as React from 'react' import * as React from 'react'
import * as ReactDOM from 'react-dom' import * as ReactDOM from 'react-dom'
import { MemoryRouter, Router, withRouter } from 'react-router' import { MemoryRouter, Route as Route2, Router, withRouter } from 'react-router'
import NotLiveRoute from '../src/index' import NotLiveRoute from '../src/index'
import renderStrict from './utils/renderStrict' import renderStrict from './utils/renderStrict'
...@@ -19,7 +19,7 @@ describe('A <Route>', () => { ...@@ -19,7 +19,7 @@ describe('A <Route>', () => {
jest.spyOn(console, 'error').mockImplementation(() => {}) jest.spyOn(console, 'error').mockImplementation(() => {})
expect(() => { expect(() => {
renderStrict(<Route />, node) renderStrict(<Route2 />, node)
}).toThrow(/You should not use <Route> outside a <Router>/) }).toThrow(/You should not use <Route> outside a <Router>/)
}) })
}) })
......
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
"jest-environment-jsdom": "^24.5.0", "jest-environment-jsdom": "^24.5.0",
"react": "^16.3.2", "react": "^16.3.2",
"react-dom": "^16.3.2", "react-dom": "^16.3.2",
"react-router": "^4.3.1", "react-router": "^4.4.0",
"react-router-dom": "^4.3.1", "react-router-dom": "^4.4.0",
"react-testing-library": "^6.0.0", "react-testing-library": "^6.0.0",
"ts-jest": "^24.0.0", "ts-jest": "^24.0.0",
"tslint": "^5.14.0", "tslint": "^5.14.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment