File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -291,9 +291,9 @@ struct PlayerReducer: Reducer {
291
291
. playAllResponse(
292
292
TaskResult {
293
293
switch resourceType {
294
- case " albums " :
294
+ case " album " :
295
295
return try await apiClient. replaceCurrentPlaylistWithAlbumSongs ( resourceId)
296
- case " playlists " :
296
+ case " playlist " :
297
297
return try await apiClient. replaceCurrentPlaylistWithPlaylistSongs ( resourceId)
298
298
default :
299
299
throw APIClient . APIError. invalidRequest
Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ final class PlayerReducerTests: XCTestCase {
534
534
535
535
store. exhaustivity = . off
536
536
537
- await store. send ( . playAll( " albums " , 1 ) )
537
+ await store. send ( . playAll( " album " , 1 ) )
538
538
539
539
await store. receive ( . playAllResponse( . success( songs) ) ) {
540
540
$0. playlist. orderedSongs = songs
@@ -555,7 +555,7 @@ final class PlayerReducerTests: XCTestCase {
555
555
556
556
store. exhaustivity = . off
557
557
558
- await store. send ( . playAll( " playlists " , 1 ) )
558
+ await store. send ( . playAll( " playlist " , 1 ) )
559
559
560
560
await store. receive ( . playAllResponse( . success( songs) ) ) {
561
561
$0. playlist. orderedSongs = songs
You can’t perform that action at this time.
0 commit comments