build(deps-dev): bump typescript to 4.7.4 (#6215)
This commit is contained in:
@@ -128,14 +128,14 @@ function testRender(type: string, render: typeof renderToString) {
|
||||
await render(
|
||||
createApp(
|
||||
defineComponent({
|
||||
extends: {
|
||||
extends: defineComponent({
|
||||
data() {
|
||||
return { msg: 'hello' }
|
||||
},
|
||||
render(this: any) {
|
||||
render() {
|
||||
return h('div', this.msg)
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
)
|
||||
)
|
||||
@@ -148,14 +148,14 @@ function testRender(type: string, render: typeof renderToString) {
|
||||
createApp(
|
||||
defineComponent({
|
||||
mixins: [
|
||||
{
|
||||
defineComponent({
|
||||
data() {
|
||||
return { msg: 'hello' }
|
||||
},
|
||||
render(this: any) {
|
||||
render() {
|
||||
return h('div', this.msg)
|
||||
}
|
||||
}
|
||||
})
|
||||
]
|
||||
})
|
||||
)
|
||||
@@ -675,9 +675,7 @@ function testRender(type: string, render: typeof renderToString) {
|
||||
const MyComp = {
|
||||
render: () => h('p', 'hello')
|
||||
}
|
||||
expect(await render(h(KeepAlive, () => h(MyComp)))).toBe(
|
||||
`<p>hello</p>`
|
||||
)
|
||||
expect(await render(h(KeepAlive, () => h(MyComp)))).toBe(`<p>hello</p>`)
|
||||
})
|
||||
|
||||
test('Transition', async () => {
|
||||
|
||||
Reference in New Issue
Block a user