mirror of
https://github.com/miniflux/v2.git
synced 2025-07-02 16:38:37 +00:00
Make sure RDF entries have a date
This commit is contained in:
parent
d5838b6734
commit
eb9f588216
2 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,7 @@ import (
|
|||
"bytes"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/miniflux/miniflux2/errors"
|
||||
)
|
||||
|
@ -113,6 +114,10 @@ func TestParseRDFSample(t *testing.T) {
|
|||
if strings.HasSuffix(feed.Entries[1].Content, "Tool and API support") {
|
||||
t.Errorf("Incorrect entry content, got: %s", feed.Entries[0].Content)
|
||||
}
|
||||
|
||||
if feed.Entries[1].Date.Year() != time.Now().Year() {
|
||||
t.Errorf("Entry date should not be empty")
|
||||
}
|
||||
}
|
||||
|
||||
func TestParseRDFSampleWithDublinCore(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue