This repository was archived by the owner on Jul 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
packages/runtime-vapor/__tests__ Expand file tree Collapse file tree 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)', () => {
105105 return { }
106106 } )
107107 Comp . props = [ 'foo' ]
108- Comp . render = ( ( ) => { } ) as any
109108
110109 render ( {
111110 get foo ( ) {
@@ -147,16 +146,12 @@ describe('component props (vapor)', () => {
147146 let props : any
148147 let attrs : any
149148
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+ } )
160155
161156 render ( {
162157 get foo ( ) {
@@ -543,7 +538,6 @@ describe('component props (vapor)', () => {
543538 const { render, host } = define ( {
544539 render ( ) {
545540 const instance = getCurrentInstance ( ) !
546-
547541 const t0 = template ( '<div></div>' )
548542 const n0 = t0 ( )
549543 const n1 = children ( n0 , 0 )
You can’t perform that action at this time.
0 commit comments