From 66192d667b72258ca9594e05a227a65f9d16663b Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 19 Jul 2022 16:05:28 +0200 Subject: [PATCH] test new route for Communty --- frontend/src/routes/router.test.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/src/routes/router.test.js b/frontend/src/routes/router.test.js index 1edc6568b..a1083a499 100644 --- a/frontend/src/routes/router.test.js +++ b/frontend/src/routes/router.test.js @@ -97,6 +97,17 @@ 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()