This commit is contained in:
Leandro Facchinetti 2020-04-08 19:17:11 -04:00
parent d688d0fc21
commit 5c8e096c5d
1 changed files with 4 additions and 6 deletions

View File

@ -70,10 +70,10 @@ describe("receive email", () => {
from: "publisher@example.com", from: "publisher@example.com",
to: `${identifier}@${EMAIL_DOMAIN}`, to: `${identifier}@${EMAIL_DOMAIN}`,
subject: "New Message", subject: "New Message",
html: "<p>Invalid XML character (backspace): \b</p>", html: "<p>Invalid XML character (backspace): |\b|</p>",
}); });
const feed = await getFeed(identifier); const feed = await getFeed(identifier);
expect(feed).toMatch("Invalid XML character (backspace): "); expect(feed).toMatch("Invalid XML character (backspace): ||");
}); });
test("invalid XML character in text", async () => { test("invalid XML character in text", async () => {
@ -82,12 +82,10 @@ describe("receive email", () => {
from: "publisher@example.com", from: "publisher@example.com",
to: `${identifier}@${EMAIL_DOMAIN}`, to: `${identifier}@${EMAIL_DOMAIN}`,
subject: "New Message", subject: "New Message",
text: "Invalid XML character (backspace): \b", text: "Invalid XML character (backspace): |\b|",
}); });
const feed = await getFeed(identifier); const feed = await getFeed(identifier);
expect(feed).toMatch( expect(feed).toMatch("Invalid XML character (backspace): |&amp;#x8;|");
"Invalid XML character (backspace): &lsquo;&#x8;&rsquo;"
);
}); });
test("missing content", async () => { test("missing content", async () => {