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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user