Skip to content

Commit fcb0809

Browse files
committed
chore: remove dead code
1 parent e01f010 commit fcb0809

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

Diff for: packages/runtime-vapor/__tests__/componentProps.spec.ts

+6-12
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)