Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Oct 4, 2023
1 parent 732f520 commit 294eba1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/POLine/Vendor/VendorForm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import { render, screen } from '@folio/jest-config-stripes/testing-library/react
import { arrayMutators } from 'fixtures/arrayMutatorsMock';
import VendorForm from './VendorForm';

jest.mock('../../../common/IfFieldVisible', () => ({
IfFieldVisible: jest.fn(({ children }) => children),
}));

const defaultProps = {
accounts: [{
name: 'name',
Expand Down Expand Up @@ -65,6 +61,6 @@ describe('VendorForm', () => {
renderVendorForm({ accounts });

expect(screen.getByText(`${accounts[0].name} (${accounts[0].accountNo})`)).toBeInTheDocument();
expect(screen.getByText(`${accounts[0].name} (${accounts[0].accountNo})`)).toBeInTheDocument();
expect(screen.getByText(`${accounts[2].name} (${accounts[2].accountNo})`)).toBeInTheDocument();
});
});

0 comments on commit 294eba1

Please sign in to comment.