From 332bdf7316e5909f8eac08b41e600af7c1669d91 Mon Sep 17 00:00:00 2001 From: jixinbao Date: Tue, 21 Jan 2025 12:06:22 +0800 Subject: [PATCH] =?UTF-8?q?test(app-uts):=20=20v-on=20=E6=94=AF=E6=8C=81?= =?UTF-8?q?=20prevent=20issues=5F15333?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__tests__/android/transforms/vOnWithModifier.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uni-app-uts/__tests__/android/transforms/vOnWithModifier.spec.ts b/packages/uni-app-uts/__tests__/android/transforms/vOnWithModifier.spec.ts index 3a9a0b298fb..684b86f57d9 100644 --- a/packages/uni-app-uts/__tests__/android/transforms/vOnWithModifier.spec.ts +++ b/packages/uni-app-uts/__tests__/android/transforms/vOnWithModifier.spec.ts @@ -45,10 +45,10 @@ describe('compiler-dom: transform v-on', () => { type: NodeTypes.JS_PROPERTY, value: { callee: V_ON_WITH_MODIFIERS, - arguments: [{ content: '_ctx.test' }, '["stop"]'], + arguments: [{ content: '_ctx.test' }, '["stop","prevent"]'], }, }) - expect(warnings).toEqual(['.prevent is not supported']) + expect(warnings).toEqual([]) }) it('should support multiple events and modifiers options w/ prefixIdentifiers: true', () => {