diff --git a/src/runtime/bootstrap-custom-element.ts b/src/runtime/bootstrap-custom-element.ts index b9a5cc7186e..4db002b21a2 100644 --- a/src/runtime/bootstrap-custom-element.ts +++ b/src/runtime/bootstrap-custom-element.ts @@ -67,7 +67,7 @@ export const proxyCustomElement = (Cstr: any, compactMeta: d.ComponentRuntimeMet const originalConnectedCallback = Cstr.prototype.connectedCallback; const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback; - let hasHostListenerAttached = false + let hasHostListenerAttached = false; Object.assign(Cstr.prototype, { __registerHost() { registerHost(this, cmpMeta); diff --git a/test/wdio/event-listener-capture/event-re-register.test.tsx b/test/wdio/event-listener-capture/event-re-register.test.tsx index 5e6ddd11ec0..56ca474c4c7 100644 --- a/test/wdio/event-listener-capture/event-re-register.test.tsx +++ b/test/wdio/event-listener-capture/event-re-register.test.tsx @@ -27,8 +27,7 @@ describe('event-listener-capture using lazy load components', function () { await browser.action('key').down('a').pause(100).up('a').perform(); // check if event fired 3 times - await expect(reattach).toHaveText( - expect.stringContaining('Event fired times: 3')); + await expect(reattach).toHaveText(expect.stringContaining('Event fired times: 3')); // remove node from DOM elem.remove(); @@ -43,7 +42,6 @@ describe('event-listener-capture using lazy load components', function () { await browser.action('key').down('a').pause(100).up('a').perform(); // check if event fired 6 times - await expect(reattach).toHaveText( - expect.stringContaining('Event fired times: 6')); + await expect(reattach).toHaveText(expect.stringContaining('Event fired times: 6')); }); }); diff --git a/test/wdio/event-listener-capture/event-re-register.tsx b/test/wdio/event-listener-capture/event-re-register.tsx index 6601c813b75..20429e1ba45 100644 --- a/test/wdio/event-listener-capture/event-re-register.tsx +++ b/test/wdio/event-listener-capture/event-re-register.tsx @@ -20,15 +20,17 @@ export class EventReRegister implements ComponentInterface { console.log('disconnected'); } render() { - return - -

Event fired times: {this.eventFiredTimes}

-
; + return ( + + +

Event fired times: {this.eventFiredTimes}

+
+ ); } }