From 38e8c4b38d1bc4bcc982349ce5ec3761b11a1398 Mon Sep 17 00:00:00 2001 From: Revanshu Paliwal Date: Mon, 18 Jul 2022 11:14:02 +0200 Subject: SONAR-16613 UI changes to use new API for sonarlint ad dismiss mechanism --- server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts') 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) { 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 { -- cgit v1.2.3