Skip to content

Commit 4b75752

Browse files
committed
test: add test case
1 parent 8b41d67 commit 4b75752

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

packages/server-renderer/__tests__/ssrSlot.spec.ts

+16
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,20 @@ describe('ssr: slot', () => {
137137
),
138138
).toBe(`<div>foo</div>`)
139139
})
140+
141+
// #9933
142+
test('transition-group slot', async () => {
143+
expect(
144+
await renderToString(
145+
createApp({
146+
components: {
147+
one: {
148+
template: `<transition><slot/></transition>`,
149+
},
150+
},
151+
template: `<one><p v-for="i in 2">{{i}}</p></one>`,
152+
}),
153+
),
154+
).toBe(`<p>1</p><p>2</p>`)
155+
})
140156
})

0 commit comments

Comments
 (0)