mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 15:10:35 +03:00
hugolib: Expand TestPageWithEmoji to cover '+', '-' and '_' too
See #5635 and commit 3038464e
This commit is contained in:
parent
3038464ea6
commit
2a9060a85c
1 changed files with 21 additions and 3 deletions
|
@ -1512,8 +1512,16 @@ title: "Hugo Smile"
|
||||||
This is a :smile:.
|
This is a :smile:.
|
||||||
<!--more-->
|
<!--more-->
|
||||||
|
|
||||||
Another :smile: This is :not: an emoji.
|
Another :smile: This is :not: :an: :emoji:.
|
||||||
|
|
||||||
|
O :christmas_tree:
|
||||||
|
|
||||||
|
Write me an :e-mail: or :email:?
|
||||||
|
|
||||||
|
Too many colons: :: ::: :::: :?: :!: :.:
|
||||||
|
|
||||||
|
If you dislike this video, you can hit that :-1: button :stuck_out_tongue_winking_eye:,
|
||||||
|
but if you like it, hit :+1: and get subscribed!
|
||||||
`)
|
`)
|
||||||
|
|
||||||
b.CreateSites().Build(BuildCfg{})
|
b.CreateSites().Build(BuildCfg{})
|
||||||
|
@ -1522,13 +1530,23 @@ Another :smile: This is :not: an emoji.
|
||||||
b.AssertFileContent("public/page-emoji/index.html",
|
b.AssertFileContent("public/page-emoji/index.html",
|
||||||
"This is a 😄",
|
"This is a 😄",
|
||||||
"Another 😄",
|
"Another 😄",
|
||||||
"This is :not: an emoji",
|
"This is :not: :an: :emoji:.",
|
||||||
|
"O 🎄",
|
||||||
|
"Write me an 📧 or ✉️?",
|
||||||
|
"Too many colons: :: ::: :::: :?: :!: :.:",
|
||||||
|
"you can hit that 👎 button 😜,",
|
||||||
|
"hit 👍 and get subscribed!",
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
b.AssertFileContent("public/page-emoji/index.html",
|
b.AssertFileContent("public/page-emoji/index.html",
|
||||||
"This is a :smile:",
|
"This is a :smile:",
|
||||||
"Another :smile:",
|
"Another :smile:",
|
||||||
"This is :not: an emoji",
|
"This is :not: :an: :emoji:.",
|
||||||
|
"O :christmas_tree:",
|
||||||
|
"Write me an :e-mail: or :email:?",
|
||||||
|
"Too many colons: :: ::: :::: :?: :!: :.:",
|
||||||
|
"you can hit that :-1: button :stuck_out_tongue_winking_eye:,",
|
||||||
|
"hit :+1: and get subscribed!",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue