]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test: update test case edison/fix/12124 12125/head
authordaiwei <daiwei521@126.com>
Tue, 8 Oct 2024 13:23:46 +0000 (21:23 +0800)
committerdaiwei <daiwei521@126.com>
Tue, 8 Oct 2024 13:23:46 +0000 (21:23 +0800)
packages/runtime-dom/__tests__/customElement.spec.ts

index 9d2e14d3d73cdab403529b5129123f48a704844f..7ffb25210ac8ae9ae5940f20f07ad402c76ba5be 100644 (file)
@@ -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`)
   })
 })