package app import ( "bytes" "io" "strings" "testing" "time" ) func TestEveryPageUsesStandaloneLogoMarkAsFavicon(t *testing.T) { t.Parallel() for _, file := range []string{ "templates/audit.html", "templates/hosts.html", "templates/login.html", "templates/packages.html", "templates/portal.html", } { content, err := webFiles.ReadFile(file) if err != nil { t.Fatal(err) } if !strings.Contains( string(content), ``, ) { t.Errorf("%s does not reference the standalone logo favicon", file) } } mark, err := webFiles.ReadFile("static/ta-mark.svg") if err != nil { t.Fatal(err) } if bytes.Count(mark, []byte("