expect(spy).toHaveBeenCalled()
})
+ test('elements with camel-case in svg ', () => {
+ const { vnode, container } = mountWithHydration(
+ '<animateTransform></animateTransform>',
+ () => h('animateTransform')
+ )
+ expect(vnode.el).toBe(container.firstChild)
+ expect(`Hydration node mismatch`).not.toHaveBeenWarned()
+ })
+
test('SVG as a mount container', () => {
const svgContainer = document.createElement('svg')
svgContainer.innerHTML = '<g></g>'
if (shapeFlag & ShapeFlags.ELEMENT) {
if (
domType !== DOMNodeTypes.ELEMENT ||
- vnode.type !== (node as Element).tagName.toLowerCase()
+ (vnode.type as string).toLowerCase() !==
+ (node as Element).tagName.toLowerCase()
) {
nextNode = onMismatch()
} else {