Skip to content

Commit

Permalink
Fixed other param that could be simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
Oceanity committed Jun 16, 2024
1 parent 77fd012 commit 4dc4724
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/spotify/player/playlist.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe("SpotifyPlaylistService", () => {
expect(playlist.id).toBe(testPlaylist.id);
expect(playlist.name).toBe(testPlaylist.name);
expect(playlist.description).toBe(testPlaylist.description);
expect(playlist.url).toBe(testPlaylist.external_urls.spotify);
expect(playlist.url).toBe(testPlaylist.href);
expect(playlist.uri).toBe(testPlaylist.uri);
expect(playlist.coverImageUrl).toBe(
getBiggestImageUrl(testPlaylist.images)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/spotify/player/playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class SpotifyPlaylistService {
}

public get url(): string {
return this._playlist?.external_urls.spotify ?? "";
return this._playlist?.href ?? "";
}

public get uri(): string {
Expand Down

0 comments on commit 4dc4724

Please sign in to comment.