From f9f7f6cc6fa089d12096732afafc12ecde68c5d8 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 7 Jan 2022 19:47:11 +0530 Subject: [PATCH] Fix test --- src/domain/session/room/timeline/deserialize.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/domain/session/room/timeline/deserialize.js b/src/domain/session/room/timeline/deserialize.js index 6003aef9..b59c2e59 100644 --- a/src/domain/session/room/timeline/deserialize.js +++ b/src/domain/session/room/timeline/deserialize.js @@ -501,13 +501,12 @@ export async function tests() { }, "Reply fallback is always stripped": assert => { const input = 'Hello, World!'; - const strippedInput = 'Hello, !'; const output = [ new TextPart('Hello, '), new FormatPart("em", []), new TextPart('!'), ]; - assert.deepEqual(parseHTMLBody(platform, null, input), new MessageBody(strippedInput, output)); + assert.deepEqual(parseHTMLBody(platform, null, input), new MessageBody(input, output)); } /* Doesnt work: HTML library doesn't handle
 properly.
         "Text with code block": assert => {