|
|
@@ -9,7 +9,8 @@ import {
|
|
|
createTextVNode,
|
|
|
createStaticVNode,
|
|
|
KeepAlive,
|
|
|
- withCtx
|
|
|
+ withCtx,
|
|
|
+ Transition
|
|
|
} from 'vue'
|
|
|
import { escapeHtml } from '@vue/shared'
|
|
|
import { renderToString } from '../src/renderToString'
|
|
|
@@ -614,6 +615,15 @@ function testRender(type: string, render: typeof renderToString) {
|
|
|
`<!--[--><p>hello</p><!--]-->`
|
|
|
)
|
|
|
})
|
|
|
+
|
|
|
+ test('Transition', async () => {
|
|
|
+ const MyComp = {
|
|
|
+ render: () => h('p', 'hello')
|
|
|
+ }
|
|
|
+ expect(await render(h(Transition, () => h(MyComp)))).toBe(
|
|
|
+ `<p>hello</p>`
|
|
|
+ )
|
|
|
+ })
|
|
|
})
|
|
|
|
|
|
describe('raw vnode types', () => {
|