This commit is contained in:
RMidhunSuresh 2022-01-07 19:47:11 +05:30
parent 7f91653208
commit f9f7f6cc6f

View file

@ -501,13 +501,12 @@ export async function tests() {
},
"Reply fallback is always stripped": assert => {
const input = 'Hello, <em><mx-reply>World</mx-reply></em>!';
const strippedInput = 'Hello, <em></em>!';
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 <pre><code> properly.
"Text with code block": assert => {