Fix test
This commit is contained in:
parent
d688d0fc21
commit
5c8e096c5d
10
src/test.ts
10
src/test.ts
|
@ -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): |&#x8;|");
|
||||||
"Invalid XML character (backspace): ‘’"
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("missing content", async () => {
|
test("missing content", async () => {
|
||||||
|
|
Loading…
Reference in New Issue