Fixed #310: current track restart/hiccup when shuffling queue, deleting track from queue or reordering

This commit is contained in:
Eliot Berriot 2018-06-22 23:29:54 +02:00
parent b2a876b4df
commit 39b473f1e6
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
7 changed files with 54 additions and 28 deletions

View file

@ -169,11 +169,11 @@ describe('store/queue', () => {
payload: 2,
params: {state: {currentIndex: 2}},
expectedMutations: [
{ type: 'splice', payload: {start: 2, size: 1} }
{ type: 'splice', payload: {start: 2, size: 1} },
{ type: 'currentIndex', payload: 2 }
],
expectedActions: [
{ type: 'player/stop', payload: null, options: {root: true} },
{ type: 'currentIndex', payload: 2 }
{ type: 'player/stop', payload: null, options: {root: true} }
]
}, done)
})
@ -324,7 +324,6 @@ describe('store/queue', () => {
action: store.actions.shuffle,
params: {state: {currentIndex: 1, tracks: tracks}},
expectedMutations: [
{ type: 'player/currentTime', payload: 0, options: {root: true} },
{ type: 'tracks', payload: [] }
],
expectedActions: [