File tree 1 file changed +6
-12
lines changed
packages/runtime-vapor/__tests__
1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ describe('component props (vapor)', () => {
105
105
return { }
106
106
} )
107
107
Comp . props = [ 'foo' ]
108
- Comp . render = ( ( ) => { } ) as any
109
108
110
109
render ( {
111
110
get foo ( ) {
@@ -147,16 +146,12 @@ describe('component props (vapor)', () => {
147
146
let props : any
148
147
let attrs : any
149
148
150
- const { component : Comp , render } = define (
151
- ( _props : any , { attrs : _attrs } : any ) => {
152
- const instance = getCurrentInstance ( ) !
153
- props = instance . props
154
- attrs = instance . attrs
155
- return { }
156
- } ,
157
- )
158
- Comp . props = undefined
159
- Comp . render = ( ) => { }
149
+ const { render } = define ( ( _props : any , { attrs : _attrs } : any ) => {
150
+ const instance = getCurrentInstance ( ) !
151
+ props = instance . props
152
+ attrs = instance . attrs
153
+ return { }
154
+ } )
160
155
161
156
render ( {
162
157
get foo ( ) {
@@ -543,7 +538,6 @@ describe('component props (vapor)', () => {
543
538
const { render, host } = define ( {
544
539
render ( ) {
545
540
const instance = getCurrentInstance ( ) !
546
-
547
541
const t0 = template ( '<div></div>' )
548
542
const n0 = t0 ( )
549
543
const n1 = children ( n0 , 0 )
You can’t perform that action at this time.
0 commit comments