diff options
Diffstat (limited to 'internal/liturgy/store_test.go')
| -rw-r--r-- | internal/liturgy/store_test.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/internal/liturgy/store_test.go b/internal/liturgy/store_test.go index 979b091..08fd1a1 100644 --- a/internal/liturgy/store_test.go +++ b/internal/liturgy/store_test.go @@ -31,12 +31,19 @@ func TestHarvestAndOffline(t *testing.T) { t.Fatal(err) } var haveGospel bool + var haveFirstCzytanie bool for _, s := range secs { - if s.Citation == "J 20, 1. 11-18" { + if s.Citation == "J 20, 1. 11-18" && s.PartID == "ewangelia" { haveGospel = true } + if strings.HasPrefix(s.Heading, "1. czytanie") && s.PartID == "pierwsze_czytanie" { + haveFirstCzytanie = true + } } if !haveGospel { - t.Error("offline gospel citation missing") + t.Error("offline gospel citation or PartID missing") + } + if !haveFirstCzytanie { + t.Error("offline first czytanie PartID missing") } } |
