Skip to content

Commit c11224a

Browse files
authored
feat(v15): Update emoji.yml and regex for Unicode v15 (#4)
1 parent ab86be2 commit c11224a

File tree

3 files changed

+230
-3
lines changed

3 files changed

+230
-3
lines changed

src/__tests__/index.test.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,4 +809,42 @@ describe('version spot checks', () => {
809809
]);
810810
});
811811
});
812+
813+
describe('Emoji 15.0', () => {
814+
test('single-codepoint leftward pushing hand with no skintone', () => {
815+
expect(parse('\ud83e\udef7')).toMatchObject([
816+
{
817+
indices: [0, 2],
818+
text: '\ud83e\udef7'
819+
}
820+
]);
821+
});
822+
823+
test('single-codepoint rightward pushing hand with skintone', () => {
824+
expect(parse('\ud83e\udef8\ud83c\udffb')).toMatchObject([
825+
{
826+
indices: [0, 4],
827+
text: '\ud83e\udef8\ud83c\udffb'
828+
}
829+
]);
830+
});
831+
832+
test('black bird', () => {
833+
expect(parse('\ud83d\udc26\u200d\u2b1b')).toMatchObject([
834+
{
835+
indices: [0, 4],
836+
text: '\ud83d\udc26\u200d\u2b1b'
837+
}
838+
]);
839+
});
840+
841+
test('wing', () => {
842+
expect(parse('\ud83e\udebd')).toMatchObject([
843+
{
844+
indices: [0, 2],
845+
text: '\ud83e\udebd'
846+
}
847+
]);
848+
});
849+
});
812850
});

0 commit comments

Comments
 (0)