|
|
@ -45,8 +45,8 @@ describe('runtime-dom: props patching', () => { |
|
|
|
|
|
|
|
public setterCalled: number = 0 |
|
|
|
} |
|
|
|
window.customElements.define('test-element', TestElement) |
|
|
|
const el = document.createElement('test-element') as TestElement |
|
|
|
window.customElements.define('patch-props-test-element', TestElement) |
|
|
|
const el = document.createElement('patch-props-test-element') as TestElement |
|
|
|
patchProp(el, 'value', null, 'foo') |
|
|
|
expect(el.value).toBe('foo') |
|
|
|
expect(el.setterCalled).toBe(1) |
|
|
|