Skip to content

Commit c39af4a

Browse files
committed
test: add test
1 parent f8f5d23 commit c39af4a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/runtime-dom/__tests__/patchProps.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ describe('runtime-dom: props patching', () => {
152152
expect(root.innerHTML).toBe(`<div><del>baz</del></div>`)
153153
})
154154

155+
test('patch innerHTML porp w/ undefined value', async () => {
156+
const root = document.createElement('div')
157+
render(h('div', { innerHTML: undefined }), root)
158+
expect(root.innerHTML).toBe(`<div></div>`)
159+
})
160+
155161
test('textContent unmount prev children', () => {
156162
const fn = vi.fn()
157163
const comp = {

0 commit comments

Comments
 (0)