count the routes

This commit is contained in:
Moriz Wahl 2021-10-04 18:15:41 +02:00
parent e41d3e5db2
commit a84bf7b712

View File

@ -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()