summaryrefslogtreecommitdiffstats
path: root/hugolib/hugo_sites_build_test.go
diff options
context:
space:
mode:
authorAlbert Nigmatzianov <albertnigma@gmail.com>2017-04-01 22:36:07 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-04-02 18:43:32 +0200
commit6b29bccfeec75172bed66285a7d20ff73bd67b25 (patch)
treea749b555d852fe4840fcd50dcc2e5c55f85cdd66 /hugolib/hugo_sites_build_test.go
parent28fdd71c29a9fec3ddfd7628b98eb713aea673ec (diff)
hugolib, i18n: Update tests with flat format and TOML files
Diffstat (limited to 'hugolib/hugo_sites_build_test.go')
-rw-r--r--hugolib/hugo_sites_build_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/hugo_sites_build_test.go b/hugolib/hugo_sites_build_test.go
index b5eac857c..80f4d5cc4 100644
--- a/hugolib/hugo_sites_build_test.go
+++ b/hugolib/hugo_sites_build_test.go
@@ -1050,8 +1050,8 @@ func createMultiTestSitesForConfig(t *testing.T, siteConfig testSiteConfig, conf
if err := afero.WriteFile(mf,
filepath.Join("i18n", "en.yaml"),
[]byte(`
-- id: hello
- translation: "Hello"
+hello:
+ other: "Hello"
`),
0755); err != nil {
t.Fatalf("Failed to write language file: %s", err)
@@ -1059,8 +1059,8 @@ func createMultiTestSitesForConfig(t *testing.T, siteConfig testSiteConfig, conf
if err := afero.WriteFile(mf,
filepath.Join("i18n", "fr.yaml"),
[]byte(`
-- id: hello
- translation: "Bonjour"
+hello:
+ other: "Bonjour"
`),
0755); err != nil {
t.Fatalf("Failed to write language file: %s", err)