Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
thisusernameisnowtaken committed Nov 17, 2023
1 parent 1d2380b commit 5799695
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/components/generic/backButton/BackButton.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import userEvent from '@testing-library/user-event';
import BackButton from './BackButton';
import { routes } from '../../../types/generic/routes';
import { endpoints } from '../../../types/generic/endpoints';
import { useBaseAPIUrl } from '../../../providers/configProvider/ConfigProvider';

describe('BackButton', () => {
it('navigates to previous page when clicking the back buttonand not on the search pages', async () => {
Expand All @@ -27,7 +28,7 @@ describe('BackButton', () => {
});

it('calls the login handler when clicking the back button on the upload search page', async () => {
const test_location_prefix = 'http://test';
const test_location_prefix = useBaseAPIUrl();

const history = createMemoryHistory({
initialEntries: ['/', '/example'],
Expand Down Expand Up @@ -57,7 +58,7 @@ describe('BackButton', () => {
});

it('calls the login handler when clicking the back button on the download search page', async () => {
const test_location_prefix = 'http://test';
const test_location_prefix = useBaseAPIUrl();

const history = createMemoryHistory({
initialEntries: ['/', '/example'],
Expand Down

0 comments on commit 5799695

Please sign in to comment.