add more tests

This commit is contained in:
Michael Telatynski 2020-01-22 11:56:27 +00:00
parent 7b26067397
commit e1e53f567f
4 changed files with 96 additions and 12 deletions

View file

@ -58,7 +58,8 @@ function addReplyToMessageContent(content, repliedToEvent, permalinkCreator) {
}
}
function createMessageContent(model, permalinkCreator) {
// exported for tests
export function createMessageContent(model, permalinkCreator) {
const isEmote = containsEmote(model);
if (isEmote) {
model = stripEmoteCommand(model);