summaryrefslogtreecommitdiffstats
path: root/hugolib/template_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-02-17 20:52:50 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-02-17 20:52:50 +0100
commited847ed93d86d0e1c0993adfee787e7fa02e604b (patch)
treefc85030e7109f3c1f8192bb417cba221f74342fe /hugolib/template_test.go
parent10c13f5d79e467796088cd305c8c3cb0fa7c0ee0 (diff)
hugolib: Test helper cleanup
Diffstat (limited to 'hugolib/template_test.go')
-rw-r--r--hugolib/template_test.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/hugolib/template_test.go b/hugolib/template_test.go
index f9e14c8f9..5a6ce2f01 100644
--- a/hugolib/template_test.go
+++ b/hugolib/template_test.go
@@ -48,7 +48,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
- th.assertFileContent(t, fs, filepath.Join("public", "sect", "index.html"), false, "Base: sect")
+ th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base: sect")
},
},
{
@@ -59,7 +59,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
- th.assertFileContent(t, fs, filepath.Join("public", "index.html"), false, "Base: index")
+ th.assertFileContent(filepath.Join("public", "index.html"), false, "Base: index")
},
},
{
@@ -70,7 +70,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
- th.assertFileContent(t, fs, filepath.Join("public", "sect", "index.html"), false, "Base: list")
+ th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base: list")
},
},
{
@@ -81,7 +81,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
- th.assertFileContent(t, fs, filepath.Join("public", "sect", "index.html"), false, "Base: list")
+ th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base: list")
},
},
{
@@ -94,7 +94,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
- th.assertFileContent(t, fs, filepath.Join("public", "sect", "index.html"), false, "Base: sect")
+ th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base: sect")
},
},
{
@@ -106,7 +106,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
- th.assertFileContent(t, fs, filepath.Join("public", "sect", "index.html"), false, "Base Theme: sect")
+ th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base Theme: sect")
},
},
{
@@ -119,7 +119,7 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
- th.assertFileContent(t, fs, filepath.Join("public", "sect", "index.html"), false, "Base: list")
+ th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base: list")
},
},
{
@@ -131,13 +131,13 @@ func TestBaseGoTemplate(t *testing.T) {
},
func(t *testing.T) {
- th.assertFileContent(t, fs, filepath.Join("public", "sect", "index.html"), false, "Base Theme: list")
+ th.assertFileContent(filepath.Join("public", "sect", "index.html"), false, "Base Theme: list")
},
},
} {
cfg, fs = newTestCfg()
- th = testHelper{cfg}
+ th = testHelper{cfg, fs, t}
writeSource(t, fs, filepath.Join("content", "sect", "page.md"), `---
title: Template test