mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
rss: use Channel tags only if there is no Item tags
This commit is contained in:
parent
7ee4a731af
commit
ad1d349a0c
2 changed files with 9 additions and 7 deletions
|
@ -1890,11 +1890,11 @@ func TestParseEntryWithCategories(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if len(feed.Entries[0].Tags) != 3 {
|
||||
t.Errorf("Incorrect number of tags, got: %d", len(feed.Entries[0].Tags))
|
||||
if len(feed.Entries[0].Tags) != 2 {
|
||||
t.Fatalf("Incorrect number of tags, got: %d", len(feed.Entries[0].Tags))
|
||||
}
|
||||
|
||||
expected := []string{"Category 1", "Category 2", "Category 3"}
|
||||
expected := []string{"Category 1", "Category 2"}
|
||||
result := feed.Entries[0].Tags
|
||||
|
||||
for i, tag := range result {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue