mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
@@ -44,7 +44,6 @@ func TestTransformRecursiveTemplate(t *testing.T) {
|
||||
newTestTemplateLookup(ts),
|
||||
)
|
||||
ctx.applyTransformations(templ.Tree.Root)
|
||||
|
||||
}
|
||||
|
||||
func newTestTemplate(templ tpl.Template) *templateState {
|
||||
@@ -78,7 +77,6 @@ func newTestTemplateLookup(in *templateState) func(name string) *templateState {
|
||||
}
|
||||
|
||||
func TestCollectInfo(t *testing.T) {
|
||||
|
||||
configStr := `{ "version": 42 }`
|
||||
|
||||
tests := []struct {
|
||||
@@ -114,11 +112,9 @@ func TestCollectInfo(t *testing.T) {
|
||||
c.Assert(ctx.t.parseInfo, qt.DeepEquals, test.expected)
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestPartialReturn(t *testing.T) {
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
tplString string
|
||||
@@ -159,8 +155,6 @@ func TestPartialReturn(t *testing.T) {
|
||||
// Just check that it doesn't fail in this test. We have functional tests
|
||||
// in hugoblib.
|
||||
c.Assert(err, qt.IsNil)
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user