summaryrefslogtreecommitdiffstats
path: root/hugolib/sitemap_test.go
diff options
context:
space:
mode:
authorbogem <albertnigma@gmail.com>2016-11-21 23:02:19 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-23 09:13:00 +0100
commit32336e9ec6d4a17bb13c30ca98233adf494ba03b (patch)
tree0805ff8530c7bb6fd474888bb9f0ee9d0708b00b /hugolib/sitemap_test.go
parent75e55cd06f63bc545c1700cd6904e509fc91093b (diff)
hugolib: Camelcase ALL_CAPS vars and const in tests
See #2014
Diffstat (limited to 'hugolib/sitemap_test.go')
-rw-r--r--hugolib/sitemap_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/sitemap_test.go b/hugolib/sitemap_test.go
index 72fcb2048..aba47ae7d 100644
--- a/hugolib/sitemap_test.go
+++ b/hugolib/sitemap_test.go
@@ -23,7 +23,7 @@ import (
"github.com/spf13/viper"
)
-const SITEMAP_TEMPLATE = `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+const sitemapTemplate = `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{ range .Data.Pages }}
<url>
<loc>{{ .Permalink }}</loc>
@@ -56,7 +56,7 @@ func doTestSitemapOutput(t *testing.T, internal bool) {
}
} else {
- if err := buildAndRenderSite(s, "sitemap.xml", SITEMAP_TEMPLATE); err != nil {
+ if err := buildAndRenderSite(s, "sitemap.xml", sitemapTemplate); err != nil {
t.Fatalf("Failed to build site: %s", err)
}
}