Merge "website: fix docHandler test when run via devcam"

This commit is contained in:
Brad Fitzpatrick 2018-01-08 14:33:58 +00:00 committed by Gerrit Code Review
commit 962dfe5b23
2 changed files with 3 additions and 3 deletions

View File

@ -103,10 +103,10 @@ func TestDocHandler(t *testing.T) {
wantSubstr string
}{
// Test that the title tag is constructed from the h1 element
{"/doc/uses", http.StatusOK,
"<title>Use Cases - Perkeep</title>"},
{"/website/testdata/sample", http.StatusOK,
"<title>Lorem Ipsum - Perkeep</title>"},
// Test that an html extension redirects to the base path
{"/doc/uses.html", 302, "Found"},
{"/website/testdata/sample.html", 302, "Found"},
}
for _, tt := range tests {

BIN
website/testdata/sample.md vendored Normal file

Binary file not shown.