fixing setup bug, adding test
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user