mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
adapt unit test for admin area routing
This commit is contained in:
parent
8348d612b6
commit
abe61f9c8c
@ -82,12 +82,19 @@ describe('router', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
describe('contribution-links', () => {
|
describe('contribution-links', () => {
|
||||||
it('loads the "ContributionLinks" component', async () => {
|
it('loads the "ContributionLinks" page', async () => {
|
||||||
const component = await routes.find((r) => r.path === '/contribution-links').component()
|
const component = await routes.find((r) => r.path === '/contribution-links').component()
|
||||||
expect(component.default.name).toBe('ContributionLinks')
|
expect(component.default.name).toBe('ContributionLinks')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('statistics', () => {
|
||||||
|
it('loads the "CommunityStatistic" page', async () => {
|
||||||
|
const component = await routes.find((r) => r.path === '/statistic').component()
|
||||||
|
expect(component.default.name).toBe('CommunityStatistic')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
describe('not found page', () => {
|
describe('not found page', () => {
|
||||||
it('renders the "NotFound" component', async () => {
|
it('renders the "NotFound" component', async () => {
|
||||||
const component = await routes.find((r) => r.path === '*').component()
|
const component = await routes.find((r) => r.path === '*').component()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user