Skip to content

Commit

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

0 comments on commit 74b205c

Please sign in to comment.