diff options
| author | Lambda <lambda@lum.domain_not_set.invalid> | 2018-12-25 18:43:52 +0100 |
|---|---|---|
| committer | Lambda <lambda@lum.domain_not_set.invalid> | 2018-12-25 18:43:52 +0100 |
| commit | 24eba26c5b34a6abedbafebab0ed9489f0fcccd6 (patch) | |
| tree | 61d3d4343e2d9e0e0d51a7278cdf34ae6b8e5f36 /test/unit/specs/boot | |
| parent | 0ad837846a3b833203bdae68fc6d3cb37c257c4b (diff) | |
Restore old routes, enable user route as fallback.
Diffstat (limited to 'test/unit/specs/boot')
| -rw-r--r-- | test/unit/specs/boot/routes.spec.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/unit/specs/boot/routes.spec.js b/test/unit/specs/boot/routes.spec.js index 9963555f..383ba90f 100644 --- a/test/unit/specs/boot/routes.spec.js +++ b/test/unit/specs/boot/routes.spec.js @@ -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) + }) }) |
