mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
Transforms native skin toned emojis to valid names
This commit is contained in:
@ -453,6 +453,10 @@ HTML
|
||||
SiteSetting.enable_emoji = false
|
||||
expect(PrettyText.cook("💣")).not_to match(/\:bomb\:/)
|
||||
end
|
||||
|
||||
it "replaces skin toned emoji" do
|
||||
expect(PrettyText.cook("hello 👱🏿♀️")).to eq("<p>hello <img src=\"/images/emoji/emoji_one/blonde_woman/6.png?v=5\" title=\":blonde_woman:t6:\" class=\"emoji\" alt=\":blonde_woman:t6:\"></p>")
|
||||
end
|
||||
end
|
||||
|
||||
describe "tag and category links" do
|
||||
|
Reference in New Issue
Block a user