mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
8cea428802
commit
9edc58a03a
1 changed files with 8 additions and 5 deletions
|
@ -146,10 +146,11 @@ func TestRenderThing(t *testing.T) {
|
||||||
{SIMPLE_PAGE_RFC3339_DATE, TEMPLATE_DATE, "2013-05-17 16:59:30 +0000 UTC"},
|
{SIMPLE_PAGE_RFC3339_DATE, TEMPLATE_DATE, "2013-05-17 16:59:30 +0000 UTC"},
|
||||||
}
|
}
|
||||||
|
|
||||||
s := new(Site)
|
|
||||||
templatePrep(s)
|
|
||||||
|
|
||||||
for i, test := range tests {
|
for i, test := range tests {
|
||||||
|
|
||||||
|
s := new(Site)
|
||||||
|
templatePrep(s)
|
||||||
|
|
||||||
p, err := NewPageFrom(strings.NewReader(test.content), "content/a/file.md")
|
p, err := NewPageFrom(strings.NewReader(test.content), "content/a/file.md")
|
||||||
p.Convert()
|
p.Convert()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -192,10 +193,12 @@ func TestRenderThingOrDefault(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
hugofs.DestinationFS = new(afero.MemMapFs)
|
hugofs.DestinationFS = new(afero.MemMapFs)
|
||||||
s := &Site{}
|
|
||||||
templatePrep(s)
|
|
||||||
|
|
||||||
for i, test := range tests {
|
for i, test := range tests {
|
||||||
|
|
||||||
|
s := &Site{}
|
||||||
|
templatePrep(s)
|
||||||
|
|
||||||
p, err := NewPageFrom(strings.NewReader(PAGE_SIMPLE_TITLE), "content/a/file.md")
|
p, err := NewPageFrom(strings.NewReader(PAGE_SIMPLE_TITLE), "content/a/file.md")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Error parsing buffer: %s", err)
|
t.Fatalf("Error parsing buffer: %s", err)
|
||||||
|
|
Loading…
Reference in a new issue