mirror of https://github.com/vuejs/core.git
[autofix.ci] apply automated fixes
This commit is contained in:
parent
34edbe4e33
commit
64e32e79bb
|
@ -254,16 +254,16 @@ describe('compat: render function', () => {
|
||||||
})
|
})
|
||||||
test('convert extends render Fn', () => {
|
test('convert extends render Fn', () => {
|
||||||
const BaseComponent = {
|
const BaseComponent = {
|
||||||
render: (h: any) => h('div', null, ['hello'])
|
render: (h: any) => h('div', null, ['hello']),
|
||||||
}
|
}
|
||||||
const ExtendComponent = {
|
const ExtendComponent = {
|
||||||
extends: BaseComponent
|
extends: BaseComponent,
|
||||||
}
|
}
|
||||||
const vm = new Vue({
|
const vm = new Vue({
|
||||||
components: { ExtendComponent },
|
components: { ExtendComponent },
|
||||||
render(h: any) {
|
render(h: any) {
|
||||||
return h('extend-component', null, [])
|
return h('extend-component', null, [])
|
||||||
}
|
},
|
||||||
}).$mount()
|
}).$mount()
|
||||||
expect(vm.$el.outerHTML).toBe(`<div>hello</div>`)
|
expect(vm.$el.outerHTML).toBe(`<div>hello</div>`)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue