Fixed test for anime drafts

This commit is contained in:
Eduard Urbach 2020-02-12 13:17:29 +09:00
parent 12d36178de
commit 1d9744ef6a
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -30,6 +30,10 @@ func TestAnime(t *testing.T) {
app.BindMiddleware() app.BindMiddleware()
for anime := range arn.StreamAnime() { for anime := range arn.StreamAnime() {
if anime.IsDraft {
continue
}
assert.True(t, anime.Title.Canonical != "") assert.True(t, anime.Title.Canonical != "")
fetch(t, app, anime.Link()) fetch(t, app, anime.Link())
} }