From 558870fcec01c815fed27431a548509db2bb989e Mon Sep 17 00:00:00 2001 From: taranbeer Date: Fri, 19 May 2023 16:31:48 +0530 Subject: [PATCH] remove tests --- .../forms/TextInput/text-input.test.tsx | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 src/components/forms/TextInput/text-input.test.tsx diff --git a/src/components/forms/TextInput/text-input.test.tsx b/src/components/forms/TextInput/text-input.test.tsx deleted file mode 100644 index 1ae3603..0000000 --- a/src/components/forms/TextInput/text-input.test.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { renderWithForm, userEvent, render, act } from '../../../test'; -import { Field } from '../Form'; - -import { TextInput } from './TextInput'; - -jest.mock('../../../_internal/hooks/use-warn'); - -describe('', () => { - it('should work without form', async () => { - const { getByRole } = render(); - - const input = getByRole('textbox'); - - await act(async () => await userEvent.type(input, 'Hello, World!')); - - expect(input).toHaveValue('Hello, World!'); - }); - - it('should interop with legacy ', async () => { - const { getByRole, formInstance } = renderWithForm( - - - , - ); - - const input = getByRole('textbox'); - - await act(async () => await userEvent.type(input, 'Hello, World!')); - - expect(input).toHaveValue('Hello, World!'); - expect(formInstance.getFieldValue('test')).toEqual('Hello, World!'); - }); - - it('should interop with
', async () => { - const { getByRole, formInstance } = renderWithForm( - , - ); - - const input = getByRole('textbox'); - - await act(async () => await userEvent.type(input, 'Hello, World!')); - - expect(input).toHaveValue('Hello, World!'); - expect(formInstance.getFieldValue('test')).toEqual('Hello, World!'); - }); -});