Avoid race conditions when queueing a story for download
This commit is contained in:
parent
0a81376ca0
commit
584b39baa8
2 changed files with 42 additions and 4 deletions
|
@ -202,8 +202,8 @@ describe('both/state/ducks/stories', () => {
|
|||
await queueStoryDownload(storyId)(dispatch, getState, null);
|
||||
|
||||
sinon.assert.calledWith(dispatch, {
|
||||
type: 'NOOP',
|
||||
payload: null,
|
||||
type: 'stories/QUEUE_STORY_DOWNLOAD',
|
||||
payload: storyId,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue