mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-09 20:30:02 +03:00
permitting empty files again. Fixing some tests to now pass.
This commit is contained in:
parent
3395e1cb92
commit
fb7d45e613
10 changed files with 73 additions and 39 deletions
|
@ -53,7 +53,7 @@ func TestPermalinkValidation(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestPermalinkExpansion(t *testing.T) {
|
||||
page, err := ReadFrom(strings.NewReader(SIMPLE_PAGE_JSON), "blue/test-page.md")
|
||||
page, err := NewPageFrom(strings.NewReader(SIMPLE_PAGE_JSON), "blue/test-page.md")
|
||||
if err != nil {
|
||||
t.Fatalf("failed before we began, could not parse SIMPLE_PAGE_JSON: %s", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue