From 3c9628b2bf95b5c5b242c91184b11517be2a784b Mon Sep 17 00:00:00 2001 From: Liam Stevens <8955671+liamstevens111@users.noreply.github.com> Date: Wed, 22 Mar 2023 16:15:41 +0700 Subject: [PATCH] [#26] Rebase --- src/components/PrivateRoute/index.test.tsx | 2 +- src/lib/requestManager.test.ts | 2 +- src/screens/ResetPassword/index.test.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/PrivateRoute/index.test.tsx b/src/components/PrivateRoute/index.test.tsx index 06110f5..81aca74 100644 --- a/src/components/PrivateRoute/index.test.tsx +++ b/src/components/PrivateRoute/index.test.tsx @@ -1,7 +1,7 @@ /* eslint-disable camelcase */ import { MemoryRouter } from 'react-router-dom'; -import { render, screen, waitForElementToBeRemoved } from '@testing-library/react'; +import { render, screen } from '@testing-library/react'; import PrivateRoute from '.'; import { setItem, clearItem } from '../../helpers/localStorage'; diff --git a/src/lib/requestManager.test.ts b/src/lib/requestManager.test.ts index 7ceb78e..8fab6b3 100644 --- a/src/lib/requestManager.test.ts +++ b/src/lib/requestManager.test.ts @@ -221,7 +221,7 @@ describe('createResponseErrorInterceptor', () => { JSON.stringify({ auth: mockTokenData, user: mockUserProfileData }) ); - // 4 I can not expect storage to set the new token here as it seems to hit the catch block in the authAdapter + // 4 I can not expect storage to set the new token here as it seems to hit the catch block in the SurveyAdapter // on the fetching of new access token } diff --git a/src/screens/ResetPassword/index.test.tsx b/src/screens/ResetPassword/index.test.tsx index fb9d1fc..ec55000 100644 --- a/src/screens/ResetPassword/index.test.tsx +++ b/src/screens/ResetPassword/index.test.tsx @@ -6,7 +6,7 @@ import userEvent from '@testing-library/user-event'; import nock from 'nock'; import ResetPasswordScreen from '.'; -import AuthAdapter from '../../adapters/authAdapter'; +import SurveyAdapter from '../../adapters/surveyAdapter'; /* eslint-disable camelcase */ const commonPasswordResetParams = { @@ -41,7 +41,7 @@ describe('ResetPasswordScreen', () => { }); test('given an empty email in the form, displays error', async () => { - const mockResetPassword = jest.spyOn(AuthAdapter, 'resetPassword'); + const mockResetPassword = jest.spyOn(SurveyAdapter, 'resetPassword'); render(, { wrapper: BrowserRouter });