diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-23 19:42:51 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-23 19:42:51 +0100 |
commit | 25ddbb09fea7794edbbafa2ffce4e361cdc9bacf (patch) | |
tree | 2dd28a069e20a974922fb7b43ba8dce2031407e3 /hugolib/resource_chain_test.go | |
parent | e691c48a5a9b4db5aa5383de6b83352fc18cc633 (diff) |
hugolib: Adjust test
See #5544
Diffstat (limited to 'hugolib/resource_chain_test.go')
-rw-r--r-- | hugolib/resource_chain_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/resource_chain_test.go b/hugolib/resource_chain_test.go index e3123952d..90022d6dc 100644 --- a/hugolib/resource_chain_test.go +++ b/hugolib/resource_chain_test.go @@ -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) }} @@ -354,6 +354,7 @@ CSV2: {{ $csv2 }} b.AssertFileContent("public/index.html", `Slogan: Hugo Rocks!`, `[[Hugo Rocks Hugo is Fast!]] 2`, + `CSV2: [[a b c]]`, ) }}, |