Skip to content

Commit

Permalink
hugolib: Adjust test
Browse files Browse the repository at this point in the history
See #5544
  • Loading branch information
bep committed Dec 23, 2018
1 parent e691c48 commit 25ddbb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hugolib/resource_chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ Publish 2: {{ $cssPublish2.Permalink }}
b.WithTemplates("home.html", `
{{ $toml := "slogan = \"Hugo Rocks!\"" | resources.FromString "slogan.toml" | transform.Unmarshal }}
{{ $csv1 := "\"Hugo Rocks\",\"Hugo is Fast!\"" | resources.FromString "slogans.csv" | transform.Unmarshal }}
{{ $csv2 := "a;b;c" | resources.FromString "abc.csv" | transform.Unmarshal (dict "csvComma" ";") }}
{{ $csv2 := "a;b;c" | transform.Unmarshal (dict "comma" ";") }}
Slogan: {{ $toml.slogan }}
CSV1: {{ $csv1 }} {{ len (index $csv1 0) }}
Expand All @@ -354,6 +354,7 @@ CSV2: {{ $csv2 }}
b.AssertFileContent("public/index.html",
`Slogan: Hugo Rocks!`,
`[[Hugo Rocks Hugo is Fast!]] 2`,
`CSV2: [[a b c]]`,
)
}},

Expand Down

0 comments on commit 25ddbb0

Please sign in to comment.