May 2019
Intermediate to advanced
496 pages
10h 38m
English
We've now updated the START_SHARING action object that is sent to Redux. Now, we need to update the sharing sagas to handle this change:
it('puts an action of RESET if reset is true', async () => { store.dispatch({ type: 'START_SHARING', reset: true }); await notifySocketOpened(); await sendSocketMessage({ type: 'UNKNOWN', id: 123 }); return expectRedux(store) .toDispatchAnAction() .matching({ type: 'RESET' });});
Read now
Unlock full access