mirror of https://github.com/vuejs/core.git
test: add test
This commit is contained in:
parent
92b1d9b2cc
commit
e9c954f141
|
@ -394,4 +394,12 @@ describe('runtime-dom: props patching', () => {
|
||||||
|
|
||||||
expect(fn).toBeCalledTimes(0)
|
expect(fn).toBeCalledTimes(0)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// #12211
|
||||||
|
test('should not override content when `text` attribute is set', () => {
|
||||||
|
const root = document.createElement('div')
|
||||||
|
render(h('a', { text: '' }, ['foo']), root)
|
||||||
|
const a = root.children[0]
|
||||||
|
expect(a.textContent).toBe('foo')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue