Skip to content

Commit

Permalink
chore: delete unrelated test case
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 6, 2023
1 parent dd8a0cf commit 2f8c769
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/runtime-core/__tests__/hydration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,6 @@ describe('SSR hydration', () => {
expect(vnode.el.nodeType).toBe(8) // comment
})

test('comment (real left square bracket)', () => {
const { vnode, container } = mountWithHydration(
`<div><span>foo</span><!--hello--></div>`,
() => h('div', [h('span', 'foo'), createCommentVNode('hello')])
)
expect(vnode.el).toBe(container.firstChild)
expect(container.innerHTML).toBe('<div><span>foo</span><!--hello--></div>')
expect(`Hydration node mismatch`).not.toHaveBeenWarned()
})

test('static', () => {
const html = '<div><span>hello</span></div>'
const { vnode, container } = mountWithHydration(html, () =>
Expand Down

0 comments on commit 2f8c769

Please sign in to comment.