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 f55011d commit 78cf0b8
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 Down Expand Up @@ -37,7 +37,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');

// const mockClearToken = jest.spyOn(myStorage, 'clearItem');

Expand Down

0 comments on commit 78cf0b8

Please sign in to comment.