Added files

This commit is contained in:
Kasper Rynning-Tønnesen
2015-07-07 21:44:09 +02:00
parent e0835ed378
commit 5b626696bd
23 changed files with 3236 additions and 0 deletions

22
server/node_modules/emoji-strip/tests/emoji-strip.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
var tape = require('tape'),
emojiStrip = require('..'),
emoji
;
tape('strip emoji', function (t) {
emoji = 'thumbs-up👍 for staying strong💪 without emoji please🙏';
t.equal(emojiStrip(emoji), 'thumbs-up for staying strong without emoji please');
emoji = 'dealing with emoji😡 makes me feel like poop💩';
t.equal(emojiStrip(emoji), 'dealing with emoji makes me feel like poop');
t.end();
});
tape('dont magically remove digits', function (t) {
emoji = '9999 ways to die🔫 in the west';
t.equal(emojiStrip(emoji), '9999 ways to die in the west');
emoji = '⚡zero 0 🐗one 1 🐴two 2 🐋three 3 🎃four 4 🍌five 5 🍻six 6 💣seven 7 🍪eight 8 eight emoji ah ah ah';
t.equal(emojiStrip(emoji), 'zero 0 one 1 two 2 three 3 four 4 five 5 six 6 seven 7 eight 8 eight emoji ah ah ah');
t.end();
});