mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Update code test
This commit is contained in:
@@ -217,7 +217,7 @@ describe('iD.util', function() {
|
||||
expect(iD.utilUnicodeCharsTruncated('🇨🇦', 1)).to.be.oneOf(['🇨', '\ud83c']);
|
||||
expect(iD.utilUnicodeCharsTruncated('🏳️🌈', 2)).to.be.oneOf(['🏳️', '\ud83c\udff3']);
|
||||
expect(iD.utilUnicodeCharsTruncated('👩👩👧👧', 4)).to.be.oneOf(['👩👩', '👩']);
|
||||
expect(iD.utilUnicodeCharsTruncated('👩❤️💋👩', 6)).to.be.oneOf(['👩❤️💋', '💋👩']);
|
||||
expect(iD.utilUnicodeCharsTruncated('👩❤️💋👩', 6)).to.be.oneOf(['👩❤️💋', '👩❤️']);
|
||||
expect(iD.utilUnicodeCharsTruncated('😎😬😆😵😴😄🙂🤔', 0)).to.eql('');
|
||||
expect(iD.utilUnicodeCharsTruncated('😎😬😆😵😴😄🙂🤔', 4)).to.be.oneOf(['😎😬😆😵', '😎😬']);
|
||||
expect(iD.utilUnicodeCharsTruncated('😎😬😆😵😴😄🙂🤔', 8)).to.be.oneOf(['😎😬😆😵😴😄🙂🤔', '😎😬😆😵']);
|
||||
|
||||
Reference in New Issue
Block a user