From 0a33f1ad08b6b6d9b45830de61ac037a21390689 Mon Sep 17 00:00:00 2001 From: "artem.sukhinin" Date: Mon, 1 Sep 2025 14:05:32 +0300 Subject: [PATCH 1/2] WAT-5059 --- core/plugin-api/src/modules/test-run-controller.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/plugin-api/src/modules/test-run-controller.ts b/core/plugin-api/src/modules/test-run-controller.ts index 36ff16196..44da5990a 100644 --- a/core/plugin-api/src/modules/test-run-controller.ts +++ b/core/plugin-api/src/modules/test-run-controller.ts @@ -6,22 +6,22 @@ export class TestRunControllerAPI extends AbstractAPI { this.registryWritePlugin(TestRunControllerPlugins.beforeRun, handler); } - beforeTest(handler: (test: IQueuedTest) => Promise) { + beforeTest(handler: (test: IQueuedTest) => Promise) { this.registryWritePlugin(TestRunControllerPlugins.beforeTest, handler); } - beforeTestRetry(handler: (params: IQueuedTest) => Promise) { + beforeTestRetry(handler: (params: IQueuedTest) => Promise) { this.registryWritePlugin( TestRunControllerPlugins.beforeTestRetry, handler, ); } - afterTest(handler: (params: IQueuedTest) => Promise) { + afterTest(handler: (params: IQueuedTest) => Promise) { this.registryWritePlugin(TestRunControllerPlugins.afterTest, handler); } - afterRun(handler: (queue: IQueuedTest[]) => Promise) { + afterRun(handler: (queue: IQueuedTest[]) => Promise) { this.registryWritePlugin(TestRunControllerPlugins.afterRun, handler); } From 90e8786803f1ed67e46ec937e676bf4c0af99133 Mon Sep 17 00:00:00 2001 From: "artem.sukhinin" Date: Mon, 1 Sep 2025 14:24:03 +0300 Subject: [PATCH 2/2] WAT-5059 --- packages/web-application/test/utils.spec.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/web-application/test/utils.spec.ts b/packages/web-application/test/utils.spec.ts index 61ce02144..790a144be 100644 --- a/packages/web-application/test/utils.spec.ts +++ b/packages/web-application/test/utils.spec.ts @@ -41,7 +41,11 @@ describe('utils', () => { it('should return toString method call result', () => { class Dummy { - constructor(private value: string) {} + private value: string; + + constructor(value: string) { + this.value = value; + } toString() { return this.value; @@ -61,7 +65,11 @@ describe('utils', () => { it('should return toFormattedString method call result', () => { class Dummy { - constructor(private value: string) {} + private value: string; + + constructor(value: string) { + this.value = value; + } toFormattedString() { return `formatted ${this.value}`;