Avoid race conditions when queueing a story for download

This commit is contained in:
Josh Perez 2022-08-11 18:26:26 -04:00 committed by GitHub
parent 0a81376ca0
commit 584b39baa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 4 deletions

View file

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