From 0c05ff459c436d35ea68365d03ec4c38a6f0964b Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Tue, 13 Jul 2021 15:14:03 -0700 Subject: [PATCH] Add another test. --- src/domain/session/room/timeline/deserialize.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/domain/session/room/timeline/deserialize.js b/src/domain/session/room/timeline/deserialize.js index 603cb438..02e099b8 100644 --- a/src/domain/session/room/timeline/deserialize.js +++ b/src/domain/session/room/timeline/deserialize.js @@ -345,6 +345,13 @@ export function tests() { ]; test(assert, input, output); }, + "Unknown and invalid attributes are stripped": assert => { + const input = 'Hello'; + const output = [ + new FormatPart("em", [new TextPart("Hello")]) + ]; + test(assert, input, output); + }, /* Doesnt work: HTML library doesn't handle
 properly.
         "Text with code block": assert => {
             const code = 'main :: IO ()\nmain = putStrLn "Hello"'