Skip to content

Commit

Permalink
test: add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Jan 1, 2024
1 parent 8b41d67 commit 4b75752
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/server-renderer/__tests__/ssrSlot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,20 @@ describe('ssr: slot', () => {
),
).toBe(`<div>foo</div>`)
})

// #9933
test('transition-group slot', async () => {
expect(
await renderToString(
createApp({
components: {
one: {
template: `<transition><slot/></transition>`,
},
},
template: `<one><p v-for="i in 2">{{i}}</p></one>`,
}),
),
).toBe(`<p>1</p><p>2</p>`)
})
})

0 comments on commit 4b75752

Please sign in to comment.