Skip to content

Commit

Permalink
[#26] Rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
liamstevens111 committed Mar 22, 2023
1 parent 78cf0b8 commit 3c9628b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/PrivateRoute/index.test.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/requestManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions src/screens/ResetPassword/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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(<ResetPasswordScreen />, { wrapper: BrowserRouter });

Expand Down

0 comments on commit 3c9628b

Please sign in to comment.