|
|
@@ -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`)
|
|
|
})
|
|
|
})
|