From 740000a9a95af5ef436511d9b1843a640c6b91cd Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 19 Jul 2022 17:04:44 +0200 Subject: [PATCH] adjust router test (no double community test) --- frontend/src/routes/router.test.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/frontend/src/routes/router.test.js b/frontend/src/routes/router.test.js index 3e4fae2fd..2eefaeb36 100644 --- a/frontend/src/routes/router.test.js +++ b/frontend/src/routes/router.test.js @@ -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()