Skip to content
4 changes: 1 addition & 3 deletions tests/TextArea.allowClear.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { fireEvent, render } from '@testing-library/react';
import type { ChangeEventHandler, TextareaHTMLAttributes } from 'react';
import React from 'react';
import Input from '../src';

const TextArea = Input.TextArea;
import { TextArea } from '../src';

describe('should support allowClear', () => {
it('should change type when click', () => {
Expand Down
4 changes: 1 addition & 3 deletions tests/TextArea.count.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { fireEvent, render } from '@testing-library/react';
import React from 'react';
import Input from '../src';

const TextArea = Input.TextArea;
import { TextArea } from '../src';

const getSegments = (val: string) => [...new Intl.Segmenter().segment(val)];

Expand Down
4 changes: 1 addition & 3 deletions tests/TextArea.focus.test.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// @ts-nocheck
import { fireEvent, render } from '@testing-library/react';
import React from 'react';
import Input from '../src';
import { TextArea } from '../src';
import type { TextAreaRef } from '../src';
Comment thread
QDyanbing marked this conversation as resolved.
Outdated

const TextArea = Input.TextArea;

describe('focus and blur', () => {
let focused = false;
let blurred = false;
Expand Down
4 changes: 1 addition & 3 deletions tests/TextArea.showCount.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { render } from '@testing-library/react';
import React from 'react';
import Input from '../src';

const TextArea = Input.TextArea;
import { TextArea } from '../src';

describe('should support showCount', () => {
it('maxLength', () => {
Expand Down
4 changes: 1 addition & 3 deletions tests/TextArea.test.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
// @ts-nocheck
import { fireEvent, render } from '@testing-library/react';
import React from 'react';
import Input from '../src';
import { TextArea } from '../src';
import type { TextAreaProps, TextAreaRef } from '../src';
Comment thread
QDyanbing marked this conversation as resolved.
Outdated
import calculateAutoSizeStyle, {
calculateNodeStyling,
} from '../src/calculateNodeHeight';
import { triggerResize, wait } from './utils';

const TextArea = Input.TextArea;

describe('TextArea', () => {
const originalGetComputedStyle = window.getComputedStyle;
beforeAll(() => {
Expand Down
Loading