diff --git a/src/adapters/surveyAdapter.test.ts b/src/adapters/surveyAdapter.test.ts index 6ff7217..2adcca1 100644 --- a/src/adapters/surveyAdapter.test.ts +++ b/src/adapters/surveyAdapter.test.ts @@ -95,7 +95,7 @@ describe('SurveyAdapter', () => { .reply(200); expect(scope.isDone()).toBe(false); - expect(await AuthAdapter.logout(token)); + expect(await SurveyAdapter.logout(token)); expect(scope.isDone()).toBe(true); }); }); diff --git a/src/components/Sidebar/index.test.tsx b/src/components/Sidebar/index.test.tsx index d0f4cbf..88c48c3 100644 --- a/src/components/Sidebar/index.test.tsx +++ b/src/components/Sidebar/index.test.tsx @@ -4,7 +4,7 @@ import { BrowserRouter } from 'react-router-dom'; import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import AuthAdapter from 'adapters/authAdapter'; +import SurveyAdapter from 'adapters/surveyAdapter'; import { User } from 'types/User'; import Sidebar from '.'; @@ -29,7 +29,7 @@ describe('Sidebar', () => { }); test('renders a sidebar on the page with a logout button that when clicked, calls Logout adapter and removes storage', async () => { - const mockLogout = jest.spyOn(AuthAdapter, 'logout'); + const mockLogout = jest.spyOn(SurveyAdapter, 'logout'); // jest.spyOn(localStorage, 'getItem').mockImplementation(() => { // return { auth: 'mockTokenData', user: mockUserProfileData };