Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
s3fs committed Dec 5, 2024
1 parent 2dcb027 commit 1b54059
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/test/__tests__/components/EditPreview.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PROFILE_BFIDS } from '@common/constants/bibframe.constants';
import { EditPreview } from '@components/EditPreview';
import state from '@state';
import { fireEvent, render, screen } from '@testing-library/react';
import { render, screen } from '@testing-library/react';
import { RouterProvider, createMemoryRouter } from 'react-router-dom';
import { RecoilRoot } from 'recoil';

Expand Down Expand Up @@ -34,12 +34,6 @@ describe('EditPreview', () => {

const { getByTestId } = screen;

test('navigates to add new instance screen', () => {
fireEvent.click(getByTestId('create-instance-button'));

expect(navigate).toHaveBeenCalled();
});

test('contains instances list when create work page is opened', () => {
expect(getByTestId('instances-list')).toBeInTheDocument();
});
Expand Down

0 comments on commit 1b54059

Please sign in to comment.