hugolib: More test helper cleanup

This commit is contained in:
Bjørn Erik Pedersen
2017-02-17 21:14:52 +01:00
parent ed847ed93d
commit 07ab7ae3d2
14 changed files with 171 additions and 162 deletions

View File

@@ -48,7 +48,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base: sect")
th.assertFileContent(filepath.Join("public", "sect", "index.html"), "Base: sect")
},
},
{
@@ -59,7 +59,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
th.assertFileContent(filepath.Join("public", "index.html"), false, "Base: index")
th.assertFileContent(filepath.Join("public", "index.html"), "Base: index")
},
},
{
@@ -70,7 +70,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base: list")
th.assertFileContent(filepath.Join("public", "sect", "index.html"), "Base: list")
},
},
{
@@ -81,7 +81,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base: list")
th.assertFileContent(filepath.Join("public", "sect", "index.html"), "Base: list")
},
},
{
@@ -94,7 +94,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base: sect")
th.assertFileContent(filepath.Join("public", "sect", "index.html"), "Base: sect")
},
},
{
@@ -106,7 +106,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base Theme: sect")
th.assertFileContent(filepath.Join("public", "sect", "index.html"), "Base Theme: sect")
},
},
{
@@ -119,7 +119,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base: list")
th.assertFileContent(filepath.Join("public", "sect", "index.html"), "Base: list")
},
},
{
@@ -131,7 +131,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base Theme: list")
th.assertFileContent(filepath.Join("public", "sect", "index.html"), "Base Theme: list")
},
},
} {