Просмотр исходного кода

chore: delete unrelated test case

Evan You 2 лет назад
Родитель
Сommit
2f8c769b6b
1 измененных файлов с 0 добавлено и 10 удалено
  1. 0 10
      packages/runtime-core/__tests__/hydration.spec.ts

+ 0 - 10
packages/runtime-core/__tests__/hydration.spec.ts

@@ -75,16 +75,6 @@ describe('SSR hydration', () => {
     expect(vnode.el.nodeType).toBe(8) // comment
     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', () => {
   test('static', () => {
     const html = '<div><span>hello</span></div>'
     const html = '<div><span>hello</span></div>'
     const { vnode, container } = mountWithHydration(html, () =>
     const { vnode, container } = mountWithHydration(html, () =>