chore: Export improvements (#4617)

* wip

* i18n
This commit is contained in:
Tom Moor
2022-12-27 09:51:39 -08:00
committed by GitHub
parent ee37ba9355
commit 1b8dd9399c
17 changed files with 99 additions and 26 deletions

View File

@@ -2,7 +2,7 @@ import Revision from "@server/models/Revision";
import DocumentHelper from "./DocumentHelper";
describe("toEmailDiff", () => {
test("toEmailDiff", () => {
test("toEmailDiff", async () => {
const before = new Revision({
title: "Title",
text: `
@@ -58,7 +58,7 @@ same on both sides
same on both sides`,
});
const html = DocumentHelper.toEmailDiff(before, after);
const html = await DocumentHelper.toEmailDiff(before, after);
// marks breaks in diff
expect(html).toContain("diff-context-break");