mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Add failing test for Fitzpatrick modifiers.
This commit is contained in:
committed by
John-David Dalton
parent
fc2ce9a021
commit
84763cab26
@@ -21228,10 +21228,12 @@
|
|||||||
rocket = '\ud83d\ude80',
|
rocket = '\ud83d\ude80',
|
||||||
thumbsUp = '\ud83d\udc4d',
|
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';
|
keycapHash = '#' + emojiVar + '\u20e3',
|
||||||
|
oneFitzpatrick = '\ud83c\udfff',
|
||||||
|
twoFitzpatrick = oneFitzpatrick + oneFitzpatrick;
|
||||||
|
|
||||||
QUnit.test('should account for astral symbols', function(assert) {
|
QUnit.test('should account for astral symbols', function(assert) {
|
||||||
assert.expect(26);
|
assert.expect(27);
|
||||||
|
|
||||||
var allHearts = _.repeat(hearts, 10),
|
var allHearts = _.repeat(hearts, 10),
|
||||||
chars = hearts + comboGlyph,
|
chars = hearts + comboGlyph,
|
||||||
@@ -21265,6 +21267,8 @@
|
|||||||
|
|
||||||
assert.deepEqual(_.toArray(keycapHash), [keycapHash]);
|
assert.deepEqual(_.toArray(keycapHash), [keycapHash]);
|
||||||
|
|
||||||
|
assert.deepEqual(_.toArray(twoFitzpatrick), [oneFitzpatrick, oneFitzpatrick]);
|
||||||
|
|
||||||
lodashStable.times(2, function(index) {
|
lodashStable.times(2, function(index) {
|
||||||
var separator = index ? RegExp(hearts) : hearts,
|
var separator = index ? RegExp(hearts) : hearts,
|
||||||
options = { 'length': 4, 'separator': separator },
|
options = { 'length': 4, 'separator': separator },
|
||||||
|
|||||||
Reference in New Issue
Block a user