File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
packages/server-renderer/__tests__ Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,19 @@ describe('ssr: slot', () => {
132
132
) ,
133
133
) . toBe ( `<!---->` )
134
134
135
+ expect (
136
+ await renderToString (
137
+ createApp ( {
138
+ components : {
139
+ one : {
140
+ template : `<transition><slot/></transition>` ,
141
+ } ,
142
+ } ,
143
+ template : `<one><slot/></one>` ,
144
+ } ) ,
145
+ ) ,
146
+ ) . toBe ( `<!---->` )
147
+
135
148
expect (
136
149
await renderToString (
137
150
createApp ( {
@@ -140,6 +153,19 @@ describe('ssr: slot', () => {
140
153
) ,
141
154
) . toBe ( `<template><!----></template>` )
142
155
156
+ expect (
157
+ await renderToString (
158
+ createApp ( {
159
+ components : {
160
+ one : {
161
+ template : `<transition appear><slot/></transition>` ,
162
+ } ,
163
+ } ,
164
+ template : `<one><slot/></one>` ,
165
+ } ) ,
166
+ ) ,
167
+ ) . toBe ( `<template><!----></template>` )
168
+
143
169
expect (
144
170
await renderToString (
145
171
createApp ( {
You can’t perform that action at this time.
0 commit comments