]> source.dussan.org Git - sonarqube.git/commitdiff
[NO-JIRA] Move AnalysisWarningsModal tests to RTL
author7PH <benjamin.raymond@sonarsource.com>
Tue, 20 Jun 2023 12:28:30 +0000 (14:28 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 26 Jun 2023 20:03:52 +0000 (20:03 +0000)
server/sonar-web/src/main/js/api/mocks/ComputeEngineServiceMock.ts

index d1a3b9bf592c90593cc6a18016ac844f6ab255ef..51544f39231c3a8c5ac7df67896cd3fd262a237e 100644 (file)
@@ -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);