chore: fix function name
This commit is contained in:
parent
775aa9137b
commit
865e9f9e09
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue