react-shadow-dom-retarget-events: update tests

Typescript 3.8 has a stricter type for customElements.define, so I
updated the tests to match the type.
This commit is contained in:
Nathan Shively-Sanders 2020-01-03 16:30:15 -08:00
parent 25e1983a34
commit e53b3dd6e9

View File

@ -19,4 +19,4 @@ class MyCustomElement extends HTMLElement {
}
}
customElements.define(name, MyCustomElement);
customElements.define(name, () => new MyCustomElement());