Fix deserialize test

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-05-01 12:28:18 +02:00
parent 0c869364e9
commit 1fe2085309
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -178,7 +178,7 @@ describe('editor/deserialize', function() {
const parts = normalize(parseEvent(htmlMessage(html), createPartCreator())); const parts = normalize(parseEvent(htmlMessage(html), createPartCreator()));
expect(parts.length).toBe(3); expect(parts.length).toBe(3);
expect(parts[0]).toStrictEqual({type: "plain", text: "Try "}); expect(parts[0]).toStrictEqual({type: "plain", text: "Try "});
expect(parts[1]).toStrictEqual({type: "room-pill", text: "#room:hs.tld"}); expect(parts[1]).toStrictEqual({type: "room-pill", text: "#room:hs.tld", resourceId: "#room:hs.tld"});
expect(parts[2]).toStrictEqual({type: "plain", text: "?"}); expect(parts[2]).toStrictEqual({type: "plain", text: "?"});
}); });
it('@room pill', function() { it('@room pill', function() {