1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-17 17:42:41 +03:00

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);