@cainiaofe/cn-ui-m
Version:
11 lines (10 loc) • 523 B
JavaScript
import React from 'react';
import { render } from '@testing-library/react';
import { CnInputTextArea } from '../index';
describe('CnInputTextArea', function () {
test('should render textarea with placeholder and value', function () {
var getByPlaceholderText = render(React.createElement(CnInputTextArea, { placeholder: "Enter text", value: "\u7981\u7528\u6A21\u5F0F" })).getByPlaceholderText;
var textarea = getByPlaceholderText('Enter text');
expect(textarea).toBeInTheDocument();
});
});