From 7e0df07e88d41da97af07cf4feb1c28e3862784f Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 1 Sep 2016 13:31:36 -0700 Subject: [PATCH] Fix tests // FREEBIE --- js/emoji_util.js | 4 ++-- test/index.html | 8 +++++--- test/views/message_view_test.js | 8 ++++---- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/js/emoji_util.js b/js/emoji_util.js index 23c50d32..2d0cb1b8 100644 --- a/js/emoji_util.js +++ b/js/emoji_util.js @@ -13,7 +13,7 @@ } this.inits.env = 1; this.include_title = true; - this.img_sets.apple.path = 'images/emoji/apple/'; + this.img_sets.apple.path = '/images/emoji/apple/'; this.replace_mode = 'img'; }; EmojiConvertor.prototype.replace_unified = function(str) { @@ -43,7 +43,7 @@ emoji.init_colons(); window.emoji_util.parse = function($el) { - $el.html(emoji.replace_unified($el.text())); + $el.html(emoji.replace_unified($el.html())); }; })(); diff --git a/test/index.html b/test/index.html index 1b079da5..bf1963d1 100644 --- a/test/index.html +++ b/test/index.html @@ -32,10 +32,12 @@