|
|
|
@ -26,7 +26,7 @@ import { API_END_POINTS, APICallStatusEnum, RTLActions, UI_MESSAGES } from '../s
|
|
|
|
|
import { RTLEffects } from './rtl.effects';
|
|
|
|
|
import { RTLState } from './rtl.state';
|
|
|
|
|
import { updateRootAPICallStatus, openSpinner, closeSpinner, openAlert, resetRootStore } from './rtl.actions';
|
|
|
|
|
import { resetLNDStore, fetchInfoLND } from '../lnd/store/lnd.actions';
|
|
|
|
|
import { resetLNDStore, fetchInfoLND, fetchPageSettings as fetchPageSettingsLND } from '../lnd/store/lnd.actions';
|
|
|
|
|
import { resetCLNStore } from '../cln/store/cln.actions';
|
|
|
|
|
import { resetECLStore } from '../eclair/store/ecl.actions';
|
|
|
|
|
|
|
|
|
@ -91,8 +91,9 @@ describe('RTL Root Effects', () => {
|
|
|
|
|
expect(storeDispatchSpy.calls.all()[5].args[0]).toEqual(resetLNDStore({ payload: mockActionsData.resetChildrenStores }));
|
|
|
|
|
expect(storeDispatchSpy.calls.all()[6].args[0]).toEqual(resetCLNStore({ payload: mockActionsData.resetChildrenStores }));
|
|
|
|
|
expect(storeDispatchSpy.calls.all()[7].args[0]).toEqual(resetECLStore({ payload: mockActionsData.resetChildrenStores }));
|
|
|
|
|
expect(storeDispatchSpy.calls.all()[8].args[0]).toEqual(fetchInfoLND({ payload: { loadPage: 'HOME' } }));
|
|
|
|
|
expect(storeDispatchSpy).toHaveBeenCalledTimes(9);
|
|
|
|
|
expect(storeDispatchSpy.calls.all()[8].args[0]).toEqual(fetchPageSettingsLND());
|
|
|
|
|
expect(storeDispatchSpy.calls.all()[9].args[0]).toEqual(fetchInfoLND({ payload: { loadPage: 'HOME' } }));
|
|
|
|
|
expect(storeDispatchSpy).toHaveBeenCalledTimes(10);
|
|
|
|
|
done();
|
|
|
|
|
setTimeout(() => sub.unsubscribe());
|
|
|
|
|
});
|
|
|
|
|