aboutsummaryrefslogtreecommitdiff
path: root/test/unit/specs/boot/routes.spec.js
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-12-29 13:27:59 +0000
committerlambda <pleromagit@rogerbraun.net>2018-12-29 13:27:59 +0000
commit1555a5fef38dced753c418d736468712ea818975 (patch)
treea7d1fdaa278c34f966dd7b62ba2a9ef125465d0f /test/unit/specs/boot/routes.spec.js
parenta86b80b0544ca93a1b59ff521fd9b1e8bbc3f8c9 (diff)
parentf35dbaf064cfe14ee26053a729ae1c31b76800e2 (diff)
Merge branch 'restore-routes' into 'develop'
Restore old routes, enable user route as fallback. See merge request pleroma/pleroma-fe!440
Diffstat (limited to 'test/unit/specs/boot/routes.spec.js')
-rw-r--r--test/unit/specs/boot/routes.spec.js10
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)
+ })
})