diff --git a/src/textarea/__test__/index.test.jsx b/src/textarea/__test__/index.test.jsx
index 1eb215f7b..fbc2d6caf 100644
--- a/src/textarea/__test__/index.test.jsx
+++ b/src/textarea/__test__/index.test.jsx
@@ -62,6 +62,16 @@ describe('Textarea.vue', () => {
expect(textarea.element.hasAttribute('disabled')).toBeTruthy();
});
+ it(': indicator', async () => {
+ const maxcharacter = 20;
+ const wrapper = mount();
+ const indicator = wrapper.find('.t-textarea__indicator');
+ expect(indicator.exists()).toBeTruthy();
+ expect(indicator.text()).toBe(`0/${maxcharacter}`);
+ });
+});
+
+describe(':event', () => {
it(': onBlur', async () => {
const onBlur = vi.fn();
const onFocus = vi.fn();
@@ -79,6 +89,14 @@ describe('Textarea.vue', () => {
expect(onFocus).toBeCalled();
});
+ it(': onCompositionend', async () => {
+ const onCompositionend = vi.fn();
+ const wrapper = mount();
+ const textarea = wrapper.find('textarea');
+ await textarea.trigger('compositionend');
+ expect(onCompositionend).toBeCalled();
+ });
+
it(': onChange ', async () => {
const data = ref('');
const value = ref('');