FEATURE: add support for emojis in title

This commit is contained in:
Régis Hanol
2015-06-15 15:27:22 +02:00
parent d910d3c37e
commit 2d03163be0
7 changed files with 25 additions and 7 deletions

View File

@ -71,3 +71,8 @@ test("recover", function() {
blank(topic.get('deleted_by'), "it clears deleted_by");
//ok(Discourse.ajax.calledOnce, "it called recover over the wire");
});
test('fancyTitle', function() {
var topic = Topic.create({ siteSettings: { enable_emoji: true }, fancy_title: ":smile: with all the emojis" });
equal(topic.get('fancyTitle'), "<img src='/images/emoji/undefined/smile.png?v=0' title='smile' alt='smile' class='emoji'> with all the emojis", "supports emojis");
});