From abe61f9c8c7c73f15e3f165d715093262e5014e7 Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 22 Nov 2022 13:41:09 +0100 Subject: [PATCH] adapt unit test for admin area routing --- admin/src/router/router.test.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/admin/src/router/router.test.js b/admin/src/router/router.test.js index 20563a13d..fdc4b0b83 100644 --- a/admin/src/router/router.test.js +++ b/admin/src/router/router.test.js @@ -82,12 +82,19 @@ describe('router', () => { }) describe('contribution-links', () => { - it('loads the "ContributionLinks" component', async () => { + it('loads the "ContributionLinks" page', async () => { const component = await routes.find((r) => r.path === '/contribution-links').component() expect(component.default.name).toBe('ContributionLinks') }) }) + describe('statistics', () => { + it('loads the "CommunityStatistic" page', async () => { + const component = await routes.find((r) => r.path === '/statistic').component() + expect(component.default.name).toBe('CommunityStatistic') + }) + }) + describe('not found page', () => { it('renders the "NotFound" component', async () => { const component = await routes.find((r) => r.path === '*').component()