From 7a117d224fe7fe39253d1ea4e0be7ba3e0886adf Mon Sep 17 00:00:00 2001 From: ogerly Date: Fri, 18 Mar 2022 20:27:32 +0100 Subject: [PATCH] test 100% for src/routes/router.test.js --- frontend/src/routes/router.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/routes/router.test.js b/frontend/src/routes/router.test.js index 4c454a9b4..1a966fdc6 100644 --- a/frontend/src/routes/router.test.js +++ b/frontend/src/routes/router.test.js @@ -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)