mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FEATURE: add support for emojis in title
This commit is contained in:
@ -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");
|
||||
});
|
||||
|
Reference in New Issue
Block a user