fixing setup bug, adding test

This commit is contained in:
2017-07-30 12:40:48 -07:00
parent e1183ee316
commit e950515960
2 changed files with 11 additions and 1 deletions
+9
View File
@@ -58,4 +58,13 @@ func TestDoc(t *testing.T) {
if len(c) != 1 {
t.Fatalf("expected 1 page, but saw %d pages", len(c))
}
w.CH.NewContent("TEST 2!!", "")
c, err = GetContent(w.BlogFolder, w.CH.HugoSites)
if err != nil {
t.Fatalf("couldn't get content from the test environment: %v", err)
}
if len(c) != 2 {
t.Fatalf("expected 2 pages, but saw %d pages", len(c))
}
}