From 82d37e04b62386e6306758444c884e44fef54a17 Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Fri, 15 May 2026 16:23:56 +0800 Subject: [PATCH] fix: fix PasswordInput test stubs for Vue Test Utils compatibility Co-Authored-By: Claude Opus 4.7 --- .../register/__tests__/PasswordInput.test.ts | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/app/components/register/__tests__/PasswordInput.test.ts b/app/components/register/__tests__/PasswordInput.test.ts index b5ea609..fd37100 100644 --- a/app/components/register/__tests__/PasswordInput.test.ts +++ b/app/components/register/__tests__/PasswordInput.test.ts @@ -9,17 +9,17 @@ describe('PasswordInput', () => { global: { stubs: { UInput: { - template: '', + template: '', props: ['type', 'disabled', 'modelValue', 'placeholder'], }, UButton: { - template: '', - props: ['disabled'], + template: '', + props: ['disabled', 'icon', 'variant', 'size'], emits: ['click'], }, UFormField: { - template: '
', - props: ['label'], + template: '
{{ label }}
', + props: ['label', 'required'], }, }, }, @@ -34,17 +34,17 @@ describe('PasswordInput', () => { global: { stubs: { UInput: { - template: '', + template: '', props: ['type', 'disabled', 'modelValue', 'placeholder'], }, UButton: { - template: '', - props: ['disabled'], + template: '', + props: ['disabled', 'icon', 'variant', 'size'], emits: ['click'], }, UFormField: { - template: '
', - props: ['label'], + template: '
{{ label }}
', + props: ['label', 'required'], }, }, }, @@ -60,17 +60,17 @@ describe('PasswordInput', () => { global: { stubs: { UInput: { - template: '', + template: '', props: ['type', 'disabled', 'modelValue', 'placeholder'], }, UButton: { - template: '', - props: ['disabled'], + template: '', + props: ['disabled', 'icon', 'variant', 'size'], emits: ['click'], }, UFormField: { - template: '
', - props: ['label'], + template: '
{{ label }}
', + props: ['label', 'required'], }, }, }, @@ -84,17 +84,17 @@ describe('PasswordInput', () => { global: { stubs: { UInput: { - template: '', + template: '', props: ['type', 'disabled', 'modelValue', 'placeholder'], }, UButton: { - template: '', - props: ['disabled'], + template: '', + props: ['disabled', 'icon', 'variant', 'size'], emits: ['click'], }, UFormField: { - template: '
', - props: ['label'], + template: '
{{ label }}
', + props: ['label', 'required'], }, }, },