From 1ea6ce2a486017cf53463b0604d47ab02cee3b95 Mon Sep 17 00:00:00 2001 From: daiwei Date: Mon, 16 Dec 2024 21:14:49 +0800 Subject: [PATCH] test: remove snap --- .../__snapshots__/transformElement.spec.ts.snap | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/compiler-vapor/__tests__/transforms/__snapshots__/transformElement.spec.ts.snap b/packages/compiler-vapor/__tests__/transforms/__snapshots__/transformElement.spec.ts.snap index 844786e87c6..adb34615cdf 100644 --- a/packages/compiler-vapor/__tests__/transforms/__snapshots__/transformElement.spec.ts.snap +++ b/packages/compiler-vapor/__tests__/transforms/__snapshots__/transformElement.spec.ts.snap @@ -109,20 +109,6 @@ export function render(_ctx, $props, $emit, $attrs, $slots) { }" `; -exports[`compiler: element transform > component > should wrap as function if v-on expression is inline statement 1`] = ` -"import { resolveComponent as _resolveComponent, createComponentWithFallback as _createComponentWithFallback } from 'vue'; - -export function render(_ctx) { - const _component_Foo = _resolveComponent("Foo") - const _component_Bar = _resolveComponent("Bar") - const _on_bar = $event => (_ctx.handleBar($event)) - const n0 = _createComponentWithFallback(_component_Foo, { onBar: () => _on_bar }) - const _on_bar1 = () => _ctx.handler - const n1 = _createComponentWithFallback(_component_Bar, { onBar: () => _on_bar1 }) - return [n0, n1] -}" -`; - exports[`compiler: element transform > component > static props 1`] = ` "import { resolveComponent as _resolveComponent, createComponentWithFallback as _createComponentWithFallback } from 'vue';