Adding link to the real email test.

This commit is contained in:
mike12345567 2021-05-11 12:04:07 +01:00
parent 7d78d7b15a
commit 339554b163
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ describe("/api/admin/email", () => {
.expect(200) .expect(200)
expect(res.body.message).toBeDefined() expect(res.body.message).toBeDefined()
const testUrl = nodemailer.getTestMessageUrl(res.body) const testUrl = nodemailer.getTestMessageUrl(res.body)
console.log(`${purpose} URL: ${testUrl}`)
expect(testUrl).toBeDefined() expect(testUrl).toBeDefined()
const response = await fetch(testUrl) const response = await fetch(testUrl)
const text = await response.text() const text = await response.text()