Prechádzať zdrojové kódy

test: update test case

daiwei 1 rok pred
rodič
commit
3b7fd3049f

+ 1 - 2
packages/runtime-dom/__tests__/customElement.spec.ts

@@ -1387,7 +1387,7 @@ describe('defineCustomElement', () => {
     expect(e.shadowRoot!.innerHTML).toBe(`false,boolean`)
   })
 
-  test('avoid overriding tagName', async () => {
+  test('prop name is the same as native attribute', async () => {
     const E = defineCustomElement({
       props: {
         tagName: {
@@ -1402,6 +1402,5 @@ describe('defineCustomElement', () => {
     container.innerHTML = '<el-attr-tag-name tag-name="foo">'
     const e = container.childNodes[0] as VueElement
     expect(e.shadowRoot!.innerHTML).toBe(`foo`)
-    expect(e.tagName).toBe(`EL-ATTR-TAG-NAME`)
   })
 })