add is.emoji
This commit is contained in:
parent
cdd4829edf
commit
e13599e5d7
3 changed files with 14 additions and 1 deletions
9
test.js
9
test.js
|
|
@ -475,6 +475,15 @@ test('is.emptyOrWhitespace', t => {
|
|||
t.false(m.emptyOrWhitespace('unicorn'));
|
||||
});
|
||||
|
||||
test('is.emoji', t => {
|
||||
t.true(m.emoji('🙏'));
|
||||
t.true(m.emoji('👑'));
|
||||
t.true(m.emoji('\uD83D\uDC04'));
|
||||
t.true(m.emoji('9️⃣'));
|
||||
t.true(m.emoji('🎌'));
|
||||
t.false(m.emoji(':unicorn:'));
|
||||
});
|
||||
|
||||
test('is.any', t => {
|
||||
t.true(m.any(m.string, {}, true, '🦄'));
|
||||
t.true(m.any(m.object, false, {}, 'unicorns'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue