diff options
| author | Alexander Tumin <iamtakingiteasy@eientei.org> | 2022-08-06 17:26:43 +0300 |
|---|---|---|
| committer | Alexander Tumin <iamtakingiteasy@eientei.org> | 2022-08-06 17:56:54 +0300 |
| commit | 171f6f08943dd1d87120df3e4894ddcfd5e1d246 (patch) | |
| tree | 0ee81442d29f9fa166add813dcf81046995593cf /test/unit/specs/boot | |
| parent | 610720f164dc9fcf36f9df33bddec5ac9c654e1e (diff) | |
Lists implementation
Diffstat (limited to 'test/unit/specs/boot')
| -rw-r--r-- | test/unit/specs/boot/routes.spec.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/unit/specs/boot/routes.spec.js b/test/unit/specs/boot/routes.spec.js index 5cffefbb..4c387567 100644 --- a/test/unit/specs/boot/routes.spec.js +++ b/test/unit/specs/boot/routes.spec.js @@ -40,4 +40,28 @@ describe('routes', () => { // eslint-disable-next-line no-prototype-builtins expect(matchedComponents[0].components.default.components.hasOwnProperty('UserCard')).to.eql(true) }) + + it('list view', async () => { + await router.push('/lists') + + const matchedComponents = router.currentRoute.value.matched + + expect(matchedComponents[0].components.default.components.hasOwnProperty('ListsCard')).to.eql(true) + }) + + it('list timeline', async () => { + await router.push('/lists/1') + + const matchedComponents = router.currentRoute.value.matched + + expect(matchedComponents[0].components.default.components.hasOwnProperty('Timeline')).to.eql(true) + }) + + it('list edit', async () => { + await router.push('/lists/1/edit') + + const matchedComponents = router.currentRoute.value.matched + + expect(matchedComponents[0].components.default.components.hasOwnProperty('BasicUserCard')).to.eql(true) + }) }) |
