feeds.versions have a pattern

This commit is contained in:
Bel LaPointe
2025-04-27 11:58:00 -06:00
parent 18fd8dfac5
commit a097814a62
4 changed files with 18 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ func TestFeeds(t *testing.T) {
t.Run("crud", func(t *testing.T) {
ctx := db.Test(t, ctx)
id, err := feeds.Insert(ctx, "url", "cron")
id, err := feeds.Insert(ctx, "url", "cron", "pattern")
if err != nil {
t.Fatal("cannot insert:", err)
}
@@ -48,6 +48,9 @@ func TestFeeds(t *testing.T) {
if got.Version.Cron != "cron" {
t.Error("no version.cron")
}
if got.Version.Pattern != "pattern" {
t.Error("bad version.pattern")
}
if !got.Execution.Executed.IsZero() {
t.Error("execution.executed")