]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: delete unrelated test case
authorEvan You <yyx990803@gmail.com>
Mon, 6 Nov 2023 10:46:40 +0000 (18:46 +0800)
committerEvan You <yyx990803@gmail.com>
Mon, 6 Nov 2023 10:46:40 +0000 (18:46 +0800)
packages/runtime-core/__tests__/hydration.spec.ts

index abf50c54668fa0fc57e6c3af12e3c45afc46c5b9..50331d0623f7ea379a0483932d7961ac723f66bf 100644 (file)
@@ -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, () =>