From a84bf7b7122494a28007ed103ca1ab093d8213ef Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 4 Oct 2021 18:15:41 +0200 Subject: [PATCH] count the routes --- frontend/src/routes/router.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/routes/router.test.js b/frontend/src/routes/router.test.js index 5a6367676..57fca142b 100644 --- a/frontend/src/routes/router.test.js +++ b/frontend/src/routes/router.test.js @@ -55,6 +55,10 @@ describe('router', () => { expect(routes.find((r) => r.path === '/').redirect()).toEqual({ path: '/login' }) }) + it('has ten routes defined', () => { + expect(routes).toHaveLength(10) + }) + describe('overview', () => { it('requires authorization', () => { expect(routes.find((r) => r.path === '/overview').meta.requiresAuth).toBeTruthy()