adjust router test (no double community test)

This commit is contained in:
Moriz Wahl 2022-07-19 17:04:44 +02:00
parent d6be4e46b7
commit 740000a9a9

View File

@ -76,7 +76,7 @@ describe('router', () => {
})
describe('community', () => {
it('requires community', () => {
it('requires authorization', () => {
expect(routes.find((r) => r.path === '/community').meta.requiresAuth).toBeTruthy()
})
@ -108,17 +108,6 @@ describe('router', () => {
})
})
describe('community', () => {
it('requires authorization', () => {
expect(routes.find((r) => r.path === '/community').meta.requiresAuth).toBeTruthy()
})
it('loads the "Community" page', async () => {
const component = await routes.find((r) => r.path === '/community').component()
expect(component.default.name).toBe('Community')
})
})
describe('login', () => {
it('loads the "Login" page', async () => {
const component = await routes.find((r) => r.path === '/login/:code?').component()