mirror of https://github.com/vuejs/core.git
[autofix.ci] apply automated fixes
This commit is contained in:
parent
e0aac99102
commit
3072ade092
|
@ -1,9 +1,9 @@
|
|||
import {
|
||||
ComponentInternalInstance,
|
||||
isStatefulComponent,
|
||||
type ComponentInternalInstance,
|
||||
type ComponentOptions,
|
||||
type FunctionalComponent,
|
||||
getCurrentInstance,
|
||||
isStatefulComponent,
|
||||
} from '../component'
|
||||
import { resolveInjections } from '../componentOptions'
|
||||
import type { InternalSlots } from '../componentSlots'
|
||||
|
|
|
@ -71,26 +71,26 @@ describe('COMPONENT_FUNCTIONAL', () => {
|
|||
render(h: any, ctx: any) {
|
||||
parents.push(ctx.parent)
|
||||
return h('div', 'OK')
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
const FunctionalWrapper = {
|
||||
functional: true,
|
||||
render(h: any) {
|
||||
return h(ParentReporter)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
const NonFunctionalRoot = {
|
||||
render(h: any) {
|
||||
return h('div', [h(ParentReporter), h(FunctionalWrapper)])
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
toggleDeprecationWarning(false)
|
||||
const vm = new Vue(NonFunctionalRoot).$mount()
|
||||
expect(vm.$el.outerHTML).toMatchInlineSnapshot(
|
||||
`"<div><div>OK</div><div>OK</div></div>"`
|
||||
`"<div><div>OK</div><div>OK</div></div>"`,
|
||||
)
|
||||
expect(parents.length).toBe(2)
|
||||
// consistent with 2.x
|
||||
|
|
Loading…
Reference in New Issue