[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2024-10-18 03:17:57 +00:00 committed by GitHub
parent e0aac99102
commit 3072ade092
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -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'

View File

@ -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