mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
test 100% for src/routes/router.test.js
This commit is contained in:
parent
cc77a0122f
commit
7a117d224f
@ -182,6 +182,13 @@ describe('router', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('redeem', () => {
|
||||
it('loads the "ShowTransactionLinkInformations" page', async () => {
|
||||
const component = await routes.find((r) => r.path === '/redeem/:code').component()
|
||||
expect(component.default.name).toBe('ShowTransactionLinkInformations')
|
||||
})
|
||||
})
|
||||
|
||||
describe('not found page', () => {
|
||||
it('renders the "NotFound" page', async () => {
|
||||
expect(routes.find((r) => r.path === '*').component).toEqual(NotFound)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user