diff --git a/playlist_test.go b/playlist_test.go index 01c1510..1716d8f 100644 --- a/playlist_test.go +++ b/playlist_test.go @@ -257,6 +257,20 @@ func TestGetPlaylistItemsOverride(t *testing.T) { } } +func TestGetPlaylistItemsDefault(t *testing.T) { + var types string + client, server := testClientString(http.StatusForbidden, "", func(r *http.Request) { + types = r.URL.Query().Get("additional_types") + }) + defer server.Close() + + _, _ = client.GetPlaylistItems(context.Background(), "playlistID") + + if types != "episode,track" { + t.Errorf("Expected additional type episode, got %s\n", types) + } +} + func TestUserFollowsPlaylist(t *testing.T) { client, server := testClientString(http.StatusOK, `[ true, false ]`) defer server.Close()