fix test after refactoring

pull/21833/head
Bruno Windels 2019-08-22 14:38:24 +01:00
parent 9c6953f176
commit 1dd052d9dd
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,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: "Hi "}); expect(parts[0]).toStrictEqual({type: "plain", text: "Hi "});
expect(parts[1]).toStrictEqual({type: "user-pill", text: "Alice", userId: "@alice:hs.tld"}); expect(parts[1]).toStrictEqual({type: "user-pill", text: "Alice", resourceId: "@alice:hs.tld"});
expect(parts[2]).toStrictEqual({type: "plain", text: "!"}); expect(parts[2]).toStrictEqual({type: "plain", text: "!"});
}); });
it('room pill', function() { it('room pill', function() {