mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
count the routes
This commit is contained in:
parent
e41d3e5db2
commit
a84bf7b712
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user