2
0
Fork 0
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:
Joffrey JAFFEUX 2017-06-13 20:03:59 +02:00 committed by Robin Ward
parent 13f89a53a3
commit 299339a373
3 changed files with 27 additions and 2 deletions

View file

@ -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