mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix test routes/router.test.js
This commit is contained in:
parent
edf532145f
commit
2b7518d39d
@ -50,7 +50,7 @@ describe('router', () => {
|
||||
})
|
||||
|
||||
it('has sixteen routes defined', () => {
|
||||
expect(routes).toHaveLength(19)
|
||||
expect(routes).toHaveLength(18)
|
||||
})
|
||||
|
||||
describe('overview', () => {
|
||||
@ -86,16 +86,16 @@ describe('router', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('profile', () => {
|
||||
it('requires authorization', () => {
|
||||
expect(routes.find((r) => r.path === '/profile').meta.requiresAuth).toBeTruthy()
|
||||
})
|
||||
// describe('profile', () => {
|
||||
// it('requires authorization', () => {
|
||||
// expect(routes.find((r) => r.path === '/profile').meta.requiresAuth).toBeTruthy()
|
||||
// })
|
||||
|
||||
it('loads the "Profile" page', async () => {
|
||||
const component = await routes.find((r) => r.path === '/profile').component()
|
||||
expect(component.default.name).toBe('Profile')
|
||||
})
|
||||
})
|
||||
// it('loads the "Profile" page', async () => {
|
||||
// const component = await routes.find((r) => r.path === '/profile').component()
|
||||
// expect(component.default.name).toBe('Profile')
|
||||
// })
|
||||
// })
|
||||
|
||||
describe('transactions', () => {
|
||||
it('requires authorization', () => {
|
||||
@ -178,12 +178,12 @@ describe('router', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('select-community', () => {
|
||||
it('loads the "SelectCommunity" page', async () => {
|
||||
const component = await routes.find((r) => r.path === '/select-community').component()
|
||||
expect(component.default.name).toBe('SelectCommunity')
|
||||
})
|
||||
})
|
||||
// describe('select-community', () => {
|
||||
// it('loads the "SelectCommunity" page', async () => {
|
||||
// const component = await routes.find((r) => r.path === '/select-community').component()
|
||||
// expect(component.default.name).toBe('SelectCommunity')
|
||||
// })
|
||||
// })
|
||||
|
||||
describe('reset password', () => {
|
||||
it('loads the "ResetPassword" page', async () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user