diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2022-10-19 14:46:14 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-10-21 20:03:18 +0000 |
commit | 8a3b8052254c1198495ef26abc024d26917bdef0 (patch) | |
tree | fb3621f0caa3ee1c9690ab309b10049302a0a648 /server/sonar-web/src/main/js/apps/projectBaseline | |
parent | 067e6587f1423b9b14cc7094422d47971c734764 (diff) | |
download | sonarqube-8a3b8052254c1198495ef26abc024d26917bdef0.tar.gz sonarqube-8a3b8052254c1198495ef26abc024d26917bdef0.zip |
[NO-JIRA] Fix eslint errors
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectBaseline')
3 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/BranchAnalysisList-test.tsx b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/BranchAnalysisList-test.tsx index 17d935e0480..1d011ee0d6e 100644 --- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/BranchAnalysisList-test.tsx +++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/BranchAnalysisList-test.tsx @@ -80,7 +80,7 @@ it('should render correctly', async () => { const wrapper = shallowRender(); await waitAndUpdate(wrapper); - expect(getProjectActivity).toBeCalled(); + expect(getProjectActivity).toHaveBeenCalled(); expect(wrapper.state().analyses).toHaveLength(4); }); @@ -89,7 +89,7 @@ it('should reload analyses after range change', () => { wrapper.instance().handleRangeChange({ value: 30 }); - expect(getProjectActivity).toBeCalledWith({ + expect(getProjectActivity).toHaveBeenCalledWith({ branch: 'master', project: 'project1', from: toShortNotSoISOString(subDays(new Date(), 30)) diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/BranchList-test.tsx b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/BranchList-test.tsx index 1d29ed3549b..f714c6f23d6 100644 --- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/BranchList-test.tsx +++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/BranchList-test.tsx @@ -56,7 +56,7 @@ it('should handle reset', () => { wrapper.instance().resetToDefault('master'); - expect(resetNewCodePeriod).toBeCalledWith({ + expect(resetNewCodePeriod).toHaveBeenCalledWith({ project: component.key, branch: 'master' }); diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/BranchListRow-test.tsx b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/BranchListRow-test.tsx index f0ae5029cc7..253441842a6 100644 --- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/BranchListRow-test.tsx +++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/BranchListRow-test.tsx @@ -70,7 +70,7 @@ it('should callback to open modal when clicked', () => { .first() .simulate('click'); - expect(openEditModal).toBeCalledWith(branch); + expect(openEditModal).toHaveBeenCalledWith(branch); }); it('should callback to reset when clicked', () => { @@ -86,7 +86,7 @@ it('should callback to reset when clicked', () => { .at(1) .simulate('click'); - expect(resetToDefault).toBeCalledWith(branchName); + expect(resetToDefault).toHaveBeenCalledWith(branchName); }); function shallowRender(props: Partial<BranchListRowProps> = {}) { |