fix(runtime-core): should preserve props casing when component has no declared props

close #583
This commit is contained in:
Evan You
2020-01-06 15:05:57 -05:00
parent 8aca71b354
commit bb6a346996
2 changed files with 13 additions and 7 deletions

View File

@@ -32,7 +32,8 @@ describe('attribute fallthrough', () => {
id: 'test',
class: 'c' + count.value,
style: { color: count.value ? 'red' : 'green' },
onClick: inc
onClick: inc,
'data-id': 1
})
}
}
@@ -66,6 +67,7 @@ describe('attribute fallthrough', () => {
expect(node.getAttribute('class')).toBe('c2 c0')
expect(node.style.color).toBe('green')
expect(node.style.fontWeight).toBe('bold')
expect(node.dataset.id).toBe('1')
node.dispatchEvent(new CustomEvent('click'))
expect(click).toHaveBeenCalled()