From 9d8bad84192e88c1d1a4d4465f9b052d1a617fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A5=98=ED=95=9C=EA=B2=BD?= Date: Sun, 10 Jul 2022 16:09:50 +0900 Subject: [PATCH] fix(components): [input] fix type error (#8731) --- .../components/input/__tests__/input.test.tsx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/packages/components/input/__tests__/input.test.tsx b/packages/components/input/__tests__/input.test.tsx index 4c62b560d8..28d1630827 100644 --- a/packages/components/input/__tests__/input.test.tsx +++ b/packages/components/input/__tests__/input.test.tsx @@ -1,4 +1,3 @@ -// @ts-nocheck import { nextTick, ref } from 'vue' import { mount } from '@vue/test-utils' import { afterEach, describe, expect, test, vi } from 'vitest' @@ -18,7 +17,6 @@ describe('Input.vue', () => { const handleFocus = vi.fn() const wrapper = mount(() => ( { const wrapper = mount(() => ( { const wrapper = mount(() => ( { }) test('rows', () => { - const wrapper = mount(() => ( - - )) + const wrapper = mount(() => ) expect(wrapper.find('textarea').element.rows).toEqual(3) }) @@ -205,7 +195,6 @@ describe('Input.vue', () => { class="test-text" type="text" v-model={input1.value} - // @ts-expect-error native html attribute maxlength="10" showWordLimit={show.value} /> @@ -213,7 +202,6 @@ describe('Input.vue', () => { class="test-textarea" type="textarea" v-model={input2.value} - // @ts-expect-error native html attribute maxlength="10" showWordLimit /> @@ -221,7 +209,6 @@ describe('Input.vue', () => { class="test-password" type="password" v-model={input3.value} - // @ts-expect-error native html attribute maxlength="10" showWordLimit /> @@ -229,7 +216,6 @@ describe('Input.vue', () => { class="test-initial-exceed" type="text" v-model={input4.value} - // @ts-expect-error native html attribute maxlength="2" showWordLimit />