mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Add test fails for keycap emoji (#1796).
This commit is contained in:
committed by
John-David Dalton
parent
a5c1421c6b
commit
fc2ce9a021
@@ -21227,10 +21227,11 @@
|
||||
raisedHand = '\u270B' + emojiVar,
|
||||
rocket = '\ud83d\ude80',
|
||||
thumbsUp = '\ud83d\udc4d',
|
||||
comboGlyph = '\ud83d\udc68\u200d' + heart + '\u200d\ud83d\udc8B\u200d\ud83d\udc68';
|
||||
comboGlyph = '\ud83d\udc68\u200d' + heart + '\u200d\ud83d\udc8B\u200d\ud83d\udc68',
|
||||
keycapHash = '#' + emojiVar + '\u20e3';
|
||||
|
||||
QUnit.test('should account for astral symbols', function(assert) {
|
||||
assert.expect(25);
|
||||
assert.expect(26);
|
||||
|
||||
var allHearts = _.repeat(hearts, 10),
|
||||
chars = hearts + comboGlyph,
|
||||
@@ -21262,6 +21263,8 @@
|
||||
|
||||
assert.deepEqual(_.words(string), ['A', leafs, comboGlyph, 'and', rocket]);
|
||||
|
||||
assert.deepEqual(_.toArray(keycapHash), [keycapHash]);
|
||||
|
||||
lodashStable.times(2, function(index) {
|
||||
var separator = index ? RegExp(hearts) : hearts,
|
||||
options = { 'length': 4, 'separator': separator },
|
||||
|
||||
Reference in New Issue
Block a user