|
|
@@ -139,6 +139,12 @@ describe('defineCustomElement', () => {
|
|
|
expect(e.shadowRoot!.innerHTML).toBe('<div></div><div>two</div>')
|
|
|
expect(e.hasAttribute('foo')).toBe(false)
|
|
|
|
|
|
+ e.foo = undefined
|
|
|
+ await nextTick()
|
|
|
+ expect(e.shadowRoot!.innerHTML).toBe('<div></div><div>two</div>')
|
|
|
+ expect(e.hasAttribute('foo')).toBe(false)
|
|
|
+ expect(e.foo).toBe(undefined)
|
|
|
+
|
|
|
e.bazQux = 'four'
|
|
|
await nextTick()
|
|
|
expect(e.shadowRoot!.innerHTML).toBe('<div></div><div>four</div>')
|