From 5c8e096c5dff68a59c711039ab6ee88693c934d1 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Wed, 8 Apr 2020 19:17:11 -0400 Subject: [PATCH] Fix test --- src/test.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/test.ts b/src/test.ts index cdc8331..ccd54b7 100644 --- a/src/test.ts +++ b/src/test.ts @@ -70,10 +70,10 @@ describe("receive email", () => { from: "publisher@example.com", to: `${identifier}@${EMAIL_DOMAIN}`, subject: "New Message", - html: "

Invalid XML character (backspace): ‘\b’

", + html: "

Invalid XML character (backspace): |\b|

", }); 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 () => { @@ -82,12 +82,10 @@ describe("receive email", () => { from: "publisher@example.com", to: `${identifier}@${EMAIL_DOMAIN}`, subject: "New Message", - text: "Invalid XML character (backspace): ‘\b’", + text: "Invalid XML character (backspace): |\b|", }); const feed = await getFeed(identifier); - expect(feed).toMatch( - "Invalid XML character (backspace): ‘’" - ); + expect(feed).toMatch("Invalid XML character (backspace): ||"); }); test("missing content", async () => {