diff options
Diffstat (limited to 'schema/schema_test.go')
| -rw-r--r-- | schema/schema_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/schema/schema_test.go b/schema/schema_test.go index 5dc00d1..d3e095b 100644 --- a/schema/schema_test.go +++ b/schema/schema_test.go @@ -6,6 +6,7 @@ package schema import ( "encoding/xml" "net/url" + "strings" "testing" "time" @@ -110,6 +111,12 @@ func TestYoutubeFeed(t *testing.T) { t.Errorf("entry link: %v", err) return } + if !strings.HasPrefix(entry.Link.Url, "https://www.youtube.com") { + t.Errorf("entry link: %s: expected prefix '%s'", + "https://www.youtube.com/watch", + entry.Link.Url, + ) + } } } } |
