1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Fix tests

This commit is contained in:
Maksym Pavlenko
2017-11-03 16:25:15 -07:00
parent b5b102f6dc
commit 47fe3e41b5
2 changed files with 6 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ import (
"testing"
"github.com/mxpv/podsync/pkg/api"
"github.com/mxpv/podsync/pkg/model"
"github.com/stretchr/testify/require"
)
@@ -35,12 +36,13 @@ func TestBuildYTFeed(t *testing.T) {
builder, err := NewYouTubeBuilder(ytKey)
require.NoError(t, err)
podcast, err := builder.Build(&api.Feed{
podcast, err := builder.Build(&model.Feed{
Provider: api.ProviderYoutube,
LinkType: api.LinkTypeChannel,
ItemId: "UCupvZG-5ko_eiXAupbDfxWw",
ItemID: "UCupvZG-5ko_eiXAupbDfxWw",
PageSize: maxYoutubeResults,
})
require.NoError(t, err)
require.Equal(t, "CNN", podcast.Title)