This commit is contained in:
Leandro Facchinetti 2021-03-13 13:59:42 +00:00
parent d09fbe04d1
commit a0346afed7
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ describe("Receive email", () => {
await webClient.post("", { form: { name: "A newsletter" } }) await webClient.post("", { form: { name: "A newsletter" } })
).body.match(/\/feeds\/([a-z0-9]{16})\.xml/)![1]; ).body.match(/\/feeds\/([a-z0-9]{16})\.xml/)![1];
const feedBefore = (await webClient.get(`feeds/${feedReference}.xml`)).body; const feedBefore = (await webClient.get(`feeds/${feedReference}.xml`)).body;
// await new Promise((resolve) => setTimeout(resolve, 50));
await emailClient.sendMail({ await emailClient.sendMail({
from: "publisher@example.com", from: "publisher@example.com",
to: `${feedReference}@${emailHost}`, to: `${feedReference}@${emailHost}`,