fix(keep-alive): fix keep-alive rendering when placed in vnode branch

fix #4817
This commit is contained in:
Bulat Aykaev
2022-03-28 17:05:38 +04:00
committed by Evan You
parent 3705b3b46a
commit 0841b9b524
2 changed files with 6 additions and 3 deletions

View File

@@ -676,7 +676,7 @@ function testRender(type: string, render: typeof renderToString) {
render: () => h('p', 'hello')
}
expect(await render(h(KeepAlive, () => h(MyComp)))).toBe(
`<!--[--><p>hello</p><!--]-->`
`<p>hello</p>`
)
})