Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 7db7487

Browse files
committed
test(compiler-translate):test close tag with component tagType
1 parent 1710bfd commit 7db7487

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/compiler-vapor/__tests__/__snapshots__/compile.spec.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function render(_ctx) {
130130
131131
exports[`compile > directives > v-pre > self-closing v-pre 1`] = `
132132
"import { children as _children, createTextNode as _createTextNode, append as _append, renderEffect as _renderEffect, setText as _setText, setDynamicProp as _setDynamicProp, template as _template } from 'vue/vapor';
133-
const t0 = _template("<div></div><div><Comp></Comp></div>")
133+
const t0 = _template("<div></div><div><Comp/></div>")
134134
135135
export function render(_ctx) {
136136
const n0 = t0()
@@ -145,7 +145,7 @@ export function render(_ctx) {
145145
146146
exports[`compile > directives > v-pre > should not affect siblings after it 1`] = `
147147
"import { children as _children, createTextNode as _createTextNode, append as _append, renderEffect as _renderEffect, setText as _setText, setDynamicProp as _setDynamicProp, template as _template } from 'vue/vapor';
148-
const t0 = _template("<div :id=\\"foo\\"><Comp></Comp>{{ bar }}</div><div><Comp></Comp></div>")
148+
const t0 = _template("<div :id=\\"foo\\"><Comp></Comp>{{ bar }}</div><div><Comp/></div>")
149149
150150
export function render(_ctx) {
151151
const n0 = t0()

packages/compiler-vapor/__tests__/compile.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('compile', () => {
9696
)
9797

9898
expect(code).toMatchSnapshot()
99-
expect(code).contains('<div></div><div><Comp></Comp></div>')
99+
expect(code).contains('<div></div><div><Comp/></div>')
100100
// Waiting for TODO, There should be more here.
101101
})
102102
})

0 commit comments

Comments
 (0)