File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
packages/server-renderer/__tests__ Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -128,14 +128,14 @@ function testRender(type: string, render: typeof renderToString) {
128
128
await render (
129
129
createApp (
130
130
defineComponent ( {
131
- extends : {
131
+ extends : defineComponent ( {
132
132
data ( ) {
133
133
return { msg : 'hello' }
134
134
} ,
135
135
render ( this : any ) {
136
136
return h ( 'div' , this . msg )
137
137
}
138
- }
138
+ } )
139
139
} )
140
140
)
141
141
)
@@ -148,14 +148,14 @@ function testRender(type: string, render: typeof renderToString) {
148
148
createApp (
149
149
defineComponent ( {
150
150
mixins : [
151
- {
151
+ defineComponent ( {
152
152
data ( ) {
153
153
return { msg : 'hello' }
154
154
} ,
155
155
render ( this : any ) {
156
156
return h ( 'div' , this . msg )
157
157
}
158
- }
158
+ } )
159
159
]
160
160
} )
161
161
)
@@ -675,9 +675,7 @@ function testRender(type: string, render: typeof renderToString) {
675
675
const MyComp = {
676
676
render : ( ) => h ( 'p' , 'hello' )
677
677
}
678
- expect ( await render ( h ( KeepAlive , ( ) => h ( MyComp ) ) ) ) . toBe (
679
- `<p>hello</p>`
680
- )
678
+ expect ( await render ( h ( KeepAlive , ( ) => h ( MyComp ) ) ) ) . toBe ( `<p>hello</p>` )
681
679
} )
682
680
683
681
test ( 'Transition' , async ( ) => {
You can’t perform that action at this time.
0 commit comments