Skip to content

Commit

Permalink
fix(test(youtube)): fix youtube api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTipo01 committed Aug 27, 2024
1 parent 67dd305 commit a752284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube/youtube_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestYouTube_GetPlaylist(t *testing.T) {
t.Fatal("playlist response is nil")
}

if result[0].URL != "https://www.youtube.com/watch?v=PvuYSybooLg" {
if result[0].ID != "PvuYSybooLg" {
t.Fatal("first video does not match")
}
}
Expand All @@ -45,7 +45,7 @@ func TestYouTube_Search(t *testing.T) {
t.Fatal("search response is nil")
}

if result[0].URL != "https://www.youtube.com/watch?v=dQw4w9WgXcQ" {
if result[0].ID != "dQw4w9WgXcQ" {
t.Fatal("first video does not match")
}
}

0 comments on commit a752284

Please sign in to comment.