mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-13 04:17:49 +00:00
Add tests for variation selectors.
This commit is contained in:
11
test/test.js
11
test/test.js
@@ -18888,7 +18888,8 @@
|
|||||||
QUnit.module('astral symbols');
|
QUnit.module('astral symbols');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var flag = '\uD83C\uDDFA\uD83C\uDDF8',
|
var comboGlyph = '\uD83D\uDC68\u200D\u2764\uFE0F\u200D\uD83D\uDC8B\u200D\uD83D\uDC68',
|
||||||
|
flag = '\uD83C\uDDFA\uD83C\uDDF8',
|
||||||
hearts = '\uD83D\uDC95',
|
hearts = '\uD83D\uDC95',
|
||||||
leafs = '\uD83C\uDF42';
|
leafs = '\uD83C\uDF42';
|
||||||
|
|
||||||
@@ -18962,6 +18963,14 @@
|
|||||||
assert.deepEqual(_.words(flag), [flag]);
|
assert.deepEqual(_.words(flag), [flag]);
|
||||||
assert.deepEqual(_.words(regionals), [pair[0], pair[1]]);
|
assert.deepEqual(_.words(regionals), [pair[0], pair[1]]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
QUnit.test('should account for variation selectors', function(assert) {
|
||||||
|
assert.expect(3);
|
||||||
|
|
||||||
|
assert.strictEqual(_.size(comboGlyph), 1);
|
||||||
|
assert.deepEqual(_.toArray(comboGlyph), [comboGlyph]);
|
||||||
|
assert.deepEqual(_.words(comboGlyph), [comboGlyph]);
|
||||||
|
});
|
||||||
}());
|
}());
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|||||||
Reference in New Issue
Block a user