16 lines
657 B
Go
16 lines
657 B
Go
package marketing
|
|
|
|
import "testing"
|
|
|
|
func TestBuildAllLanguages(t *testing.T) {
|
|
for _, lang := range []string{"de", "en", "fr", "es", "it", "nl", "pt", "pl"} {
|
|
page := Build(lang, "Test Product", "https://example.org", "https://example.org/about")
|
|
if page.HeroTitle == "" || page.InstallTitle == "" {
|
|
t.Fatalf("%s has incomplete primary copy", lang)
|
|
}
|
|
if len(page.Features) != 7 || len(page.InstallMethods) != 5 || len(page.Config) != 10 || len(page.FAQs) != 2 {
|
|
t.Fatalf("%s has incomplete product data: features=%d install=%d config=%d faq=%d", lang, len(page.Features), len(page.InstallMethods), len(page.Config), len(page.FAQs))
|
|
}
|
|
}
|
|
}
|