aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts
diff options
context:
space:
mode:
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>2022-07-18 11:14:02 +0200
committersonartech <sonartech@sonarsource.com>2022-07-21 20:03:06 +0000
commit38e8c4b38d1bc4bcc982349ce5ec3761b11a1398 (patch)
tree86ff6735ac07acd436a4dcb43dbee48cb240301b /server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts
parent4d4fa01b933038ba8e9639679fab4a36b6eff91a (diff)
downloadsonarqube-38e8c4b38d1bc4bcc982349ce5ec3761b11a1398.tar.gz
sonarqube-38e8c4b38d1bc4bcc982349ce5ec3761b11a1398.zip
SONAR-16613 UI changes to use new API for sonarlint ad dismiss mechanism
Diffstat (limited to 'server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts')
-rw-r--r--server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts b/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts
index 7b83314b8d3..0188a721882 100644
--- a/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts
+++ b/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts
@@ -46,7 +46,7 @@ import { NoticeType } from '../../types/users';
import { getComponentForSourceViewer, getSources } from '../components';
import { getIssueFlowSnippets, searchIssues } from '../issues';
import { getRuleDetails } from '../rules';
-import { dismissNotification, getCurrentUser } from '../users';
+import { dismissNotice, getCurrentUser } from '../users';
function mockReferenceComponent(override?: Partial<ReferencedComponent>) {
return {
@@ -200,7 +200,7 @@ export default class IssuesServiceMock {
this.handleGetComponentForSourceViewer
);
(getCurrentUser as jest.Mock).mockImplementation(this.handleGetCurrentUser);
- (dismissNotification as jest.Mock).mockImplementation(this.handleDismissNotification);
+ (dismissNotice as jest.Mock).mockImplementation(this.handleDismissNotification);
}
async getStandards(): Promise<Standards> {