Update renderFn.spec.ts

This commit is contained in:
edison 2024-10-22 15:15:05 +08:00 committed by GitHub
parent 64e32e79bb
commit 3f51e7129a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -252,7 +252,8 @@ describe('compat: render function', () => {
expect(vm.$el).toBeInstanceOf(HTMLDivElement)
expect(vm.$el.outerHTML).toBe(`<div>hello</div>`)
})
test('convert extends render Fn', () => {
test('extends render fn', () => {
const BaseComponent = {
render: (h: any) => h('div', null, ['hello']),
}