mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Fixes emoji name to code missing tones
This commit is contained in:
parent
13f89a53a3
commit
299339a373
3 changed files with 27 additions and 2 deletions
|
@ -28,4 +28,18 @@ describe Emoji do
|
|||
end
|
||||
end
|
||||
|
||||
describe '.lookup_unicode' do
|
||||
it 'should return the emoji' do
|
||||
expect(Emoji.lookup_unicode("blonde_man")).to eq("👱")
|
||||
end
|
||||
|
||||
it 'should return an aliased emoji' do
|
||||
expect(Emoji.lookup_unicode("anger_right")).to eq("🗯")
|
||||
end
|
||||
|
||||
it 'should return a skin toned emoji' do
|
||||
expect(Emoji.lookup_unicode("blonde_woman:t6")).to eq("👱🏿♀️")
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue