From 865e9f9e090e0a9fd298ef54eeb99f2bdd7bf9e5 Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Tue, 20 Feb 2024 17:29:54 -0300 Subject: [PATCH] chore: fix function name --- app/reducers/troubleshootingNotification.test.ts | 6 +++--- app/sagas/login.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/reducers/troubleshootingNotification.test.ts b/app/reducers/troubleshootingNotification.test.ts index 00210a456..2e6254e94 100644 --- a/app/reducers/troubleshootingNotification.test.ts +++ b/app/reducers/troubleshootingNotification.test.ts @@ -1,4 +1,4 @@ -import { setTroubleshootingNotification, requestTroubleshootingNotification } from '../actions/troubleshootingNotification'; +import { setTroubleshootingNotification, initTroubleshootingNotification } from '../actions/troubleshootingNotification'; import { mockedStore } from './mockedStore'; import { ITroubleshootingNotification, initialState } from './troubleshootingNotification'; @@ -8,8 +8,8 @@ describe('test troubleshootingNotification reducer', () => { expect(state).toEqual(initialState); }); - it('should return correctly the value after call requestTroubleshootingNotification action', () => { - mockedStore.dispatch(requestTroubleshootingNotification()); + it('should return correctly the value after call initTroubleshootingNotification action', () => { + mockedStore.dispatch(initTroubleshootingNotification()); const state = mockedStore.getState().troubleshootingNotification; expect(state).toEqual(initialState); }); diff --git a/app/sagas/login.js b/app/sagas/login.js index a0f4fc0ee..622655c73 100644 --- a/app/sagas/login.js +++ b/app/sagas/login.js @@ -17,7 +17,7 @@ import { inviteLinksRequest } from '../actions/inviteLinks'; import { showErrorAlert } from '../lib/methods/helpers/info'; import { localAuthenticate } from '../lib/methods/helpers/localAuthentication'; import { encryptionInit, encryptionStop } from '../actions/encryption'; -import { requestTroubleshootingNotification } from '../actions/troubleshootingNotification'; +import { initTroubleshootingNotification } from '../actions/troubleshootingNotification'; import UserPreferences from '../lib/methods/userPreferences'; import { inquiryRequest, inquiryReset } from '../ee/omnichannel/actions/inquiry'; import { isOmnichannelStatusAvailable } from '../ee/omnichannel/lib'; @@ -241,7 +241,7 @@ const handleLoginSuccess = function* handleLoginSuccess({ user }) { yield put(inviteLinksRequest(inviteLinkToken)); } yield showSupportedVersionsWarning(server); - yield put(requestTroubleshootingNotification()); + yield put(initTroubleshootingNotification()); } catch (e) { log(e); }