Merge pull request #3561 from matrix-org/bwindels/fix-editor-tests

Fix: editor tests
pull/21833/head
Bruno Windels 2019-10-22 13:57:32 +00:00 committed by GitHub
commit cb0143cd0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -208,9 +208,9 @@ describe('editor/deserialize', function() {
expect(parts.length).toBe(5);
expect(parts[0]).toStrictEqual({type: "plain", text: "1. Start"});
expect(parts[1]).toStrictEqual({type: "newline", text: "\n"});
expect(parts[2]).toStrictEqual({type: "plain", text: "1. Continue"});
expect(parts[2]).toStrictEqual({type: "plain", text: "2. Continue"});
expect(parts[3]).toStrictEqual({type: "newline", text: "\n"});
expect(parts[4]).toStrictEqual({type: "plain", text: "1. Finish"});
expect(parts[4]).toStrictEqual({type: "plain", text: "3. Finish"});
});
it('mx-reply is stripped', function() {
const html = "<mx-reply>foo</mx-reply>bar";