1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

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

@@ -191,7 +191,7 @@ Site Colors: {{ .Site.Params.COLOR }}|{{ .Site.Params.COLORS.YELLOW }}
t.Fatalf("Failed to build sites: %s", err)
}
th.assertFileContent(filepath.Join("public", "nn", "sect1", "page1", "index.html"), true,
th.assertFileContent(filepath.Join("public", "nn", "sect1", "page1", "index.html"),
"Page Colors: red|heavenly",
"Site Colors: green|yellow",
"Site Lang Mood: Happy",
@@ -204,7 +204,7 @@ Site Colors: {{ .Site.Params.COLOR }}|{{ .Site.Params.COLORS.YELLOW }}
"«Hi»", // angled quotes
)
th.assertFileContent(filepath.Join("public", "en", "sect1", "page1", "index.html"), true,
th.assertFileContent(filepath.Join("public", "en", "sect1", "page1", "index.html"),
"Site Colors: Pink|golden",
"Page Colors: black|bluesy",
"Site Lang Mood: Thoughtful",
@@ -213,7 +213,7 @@ Site Colors: {{ .Site.Params.COLOR }}|{{ .Site.Params.COLORS.YELLOW }}
"“Hi”",
)
th.assertFileContent(filepath.Join("public", "nn", "sect2", "page2", "index.html"), true,
th.assertFileContent(filepath.Join("public", "nn", "sect2", "page2", "index.html"),
"Page Colors: black|sky",
"Site Colors: green|yellow",
"Shortcode Page: black|sky",
@@ -296,7 +296,7 @@ p
t.Fatalf("Failed to build sites: %s", err)
}
th.assertFileContent(filepath.Join("public", "nn", "sect1", "page1", "index.html"), true,
th.assertFileContent(filepath.Join("public", "nn", "sect1", "page1", "index.html"),
"Page Colors: red|heavenly",
"Site Colors: green|yellow",
"Shortcode Page: red|heavenly",