Fix: Edit history modal crash (#10834)
* failing test * handle nodes without children in messagediffutils
This commit is contained in:
parent
eac548c25a
commit
41c96877d3
3 changed files with 36 additions and 2 deletions
|
@ -49,6 +49,7 @@ describe("editBodyDiffToHtml", () => {
|
|||
["attribute modifications", `<a href="#hi">hi</a>`, `<a href="#bye">hi</a>`],
|
||||
["attribute deletions", `<a href="#hi">hi</a>`, `<a>hi</a>`],
|
||||
["attribute additions", `<a>hi</a>`, `<a href="#/room/!123">hi</a>`],
|
||||
["handles empty tags", `<a>hi</a>`, `<a><h1></h1></a> hi`],
|
||||
])("renders %s", (_label, before, after) => {
|
||||
const { container } = renderDiff(before, after);
|
||||
expect(container).toMatchSnapshot();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue