test 100% for src/routes/router.test.js

This commit is contained in:
ogerly 2022-03-18 20:27:32 +01:00
parent cc77a0122f
commit 7a117d224f

View File

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