From 9b872d59d54c1a0ba0108cb820ab4b5355a27c99 Mon Sep 17 00:00:00 2001 From: 7PH Date: Tue, 20 Jun 2023 14:28:30 +0200 Subject: [PATCH] [NO-JIRA] Move AnalysisWarningsModal tests to RTL --- .../sonar-web/src/main/js/api/mocks/ComputeEngineServiceMock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/api/mocks/ComputeEngineServiceMock.ts b/server/sonar-web/src/main/js/api/mocks/ComputeEngineServiceMock.ts index d1a3b9bf592..51544f39231 100644 --- a/server/sonar-web/src/main/js/api/mocks/ComputeEngineServiceMock.ts +++ b/server/sonar-web/src/main/js/api/mocks/ComputeEngineServiceMock.ts @@ -70,7 +70,7 @@ export default class ComputeEngineServiceMock { jest.mocked(getActivity).mockImplementation(this.handleGetActivity); (getStatus as jest.Mock).mockImplementation(this.handleGetStatus); (getTypes as jest.Mock).mockImplementation(this.handleGetTypes); - (getTask as jest.Mock).mockImplementation(this.handleGetTask); + jest.mocked(getTask).mockImplementation(this.handleGetTask); (getWorkers as jest.Mock).mockImplementation(this.handleGetWorkers); (setWorkerCount as jest.Mock).mockImplementation(this.handleSetWorkerCount); -- 2.39.5