From af3274f881ee1291b7c048eba611eadbae2e8434 Mon Sep 17 00:00:00 2001 From: m-tartari <37861893+m-tartari@users.noreply.github.com> Date: Sat, 20 Jan 2024 16:07:25 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(ErrorPage):=20use?= =?UTF-8?q?=20Mui=20components?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/ErrorPage/ErrorPage.test.tsx | 5 ++-- src/components/pages/ErrorPage/ErrorPage.tsx | 29 +++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/pages/ErrorPage/ErrorPage.test.tsx b/src/components/pages/ErrorPage/ErrorPage.test.tsx index d2ca2df..574aa9f 100644 --- a/src/components/pages/ErrorPage/ErrorPage.test.tsx +++ b/src/components/pages/ErrorPage/ErrorPage.test.tsx @@ -17,12 +17,13 @@ describe('Renders ErrorPage correctly', async () => { * Passes - shows title correctly */ it('Should render the error page correctly', () => { - const router = createMemoryRouter([{ path: '/', element:
, errorElement:Sorry, an unexpected error has occurred.
- {isRouteErrorResponse(error) && ( -- - {error.status} {error.statusText} - -
- )} -