chore: fix function name

This commit is contained in:
GleidsonDaniel 2024-02-20 17:29:54 -03:00
parent 775aa9137b
commit 865e9f9e09
2 changed files with 5 additions and 5 deletions

View File

@ -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);
});

View File

@ -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);
}