From 294eba154421225107c9928f65c0c26acc71222a Mon Sep 17 00:00:00 2001 From: Alisher Musurmonov Date: Wed, 4 Oct 2023 16:53:07 +0500 Subject: [PATCH] test: fix tests --- src/components/POLine/Vendor/VendorForm.test.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/POLine/Vendor/VendorForm.test.js b/src/components/POLine/Vendor/VendorForm.test.js index 86d4eb8d1..535017eaf 100644 --- a/src/components/POLine/Vendor/VendorForm.test.js +++ b/src/components/POLine/Vendor/VendorForm.test.js @@ -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', @@ -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(); }); });