Restore old routes, enable user route as fallback.
This commit is contained in:
parent
0ad837846a
commit
24eba26c5b
9 changed files with 37 additions and 53 deletions
|
@ -12,7 +12,7 @@ describe('routes', () => {
|
|||
})
|
||||
|
||||
it('root path', () => {
|
||||
router.push('/~/main/all')
|
||||
router.push('/main/all')
|
||||
|
||||
const matchedComponents = router.getMatchedComponents()
|
||||
|
||||
|
@ -26,4 +26,12 @@ describe('routes', () => {
|
|||
|
||||
expect(matchedComponents[0].components.hasOwnProperty('UserCardContent')).to.eql(true)
|
||||
})
|
||||
|
||||
it('user\'s profile at /users', () => {
|
||||
router.push('/users/fake-user-name')
|
||||
|
||||
const matchedComponents = router.getMatchedComponents()
|
||||
|
||||
expect(matchedComponents[0].components.hasOwnProperty('UserCardContent')).to.eql(true)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue