mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Add emojify to the template func smoke tests
This commit is contained in:
parent
612c61146d
commit
989c7487eb
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,7 @@ delimit: {{ delimit (slice "A" "B" "C") ", " " and " }}
|
||||||
jsonify: {{ (slice "A" "B" "C") | jsonify }}
|
jsonify: {{ (slice "A" "B" "C") | jsonify }}
|
||||||
md5: {{ md5 "Hello world, gophers!" }}
|
md5: {{ md5 "Hello world, gophers!" }}
|
||||||
sha1: {{ sha1 "Hello world, gophers!" }}
|
sha1: {{ sha1 "Hello world, gophers!" }}
|
||||||
|
emojify: {{ "I :heart: Hugo" | emojify }}
|
||||||
`
|
`
|
||||||
expected := `chomp: <p>Blockhead</p>
|
expected := `chomp: <p>Blockhead</p>
|
||||||
dateFormat: Wednesday, Jan 21, 2015
|
dateFormat: Wednesday, Jan 21, 2015
|
||||||
|
@ -139,6 +140,7 @@ delimit: A, B and C
|
||||||
jsonify: ["A","B","C"]
|
jsonify: ["A","B","C"]
|
||||||
md5: b3029f756f98f79e7f1b7f1d1f0dd53b
|
md5: b3029f756f98f79e7f1b7f1d1f0dd53b
|
||||||
sha1: c8b5b0e33d408246e30f53e32b8f7627a7a649d4
|
sha1: c8b5b0e33d408246e30f53e32b8f7627a7a649d4
|
||||||
|
emojify: I ❤️ Hugo
|
||||||
`
|
`
|
||||||
|
|
||||||
var b bytes.Buffer
|
var b bytes.Buffer
|
||||||
|
|
Loading…
Reference in a new issue