From 2b7bbc5df0515a77bf96d0ece464f1a51365a02c Mon Sep 17 00:00:00 2001 From: cameronapak Date: Sun, 9 Nov 2025 08:01:14 -0600 Subject: [PATCH] Update tests to use real information --- app/src/core/drivers/email/plunk.spec.ts | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app/src/core/drivers/email/plunk.spec.ts b/app/src/core/drivers/email/plunk.spec.ts index 99245f8..1c881ad 100644 --- a/app/src/core/drivers/email/plunk.spec.ts +++ b/app/src/core/drivers/email/plunk.spec.ts @@ -12,11 +12,11 @@ describe.skipIf(ALL_TESTS)("plunk", () => { it("should send an email", async () => { const driver = plunkEmail({ apiKey: process.env.PLUNK_API_KEY!, - from: "test@example.com", + from: "no-reply@useplunk.net", }); const response = await driver.send( - "test@example.com", - "Test Email", + "help@bknd.io", + "Test Email from Plunk", "This is a test email", ); expect(response).toBeDefined(); @@ -28,11 +28,11 @@ describe.skipIf(ALL_TESTS)("plunk", () => { it("should send HTML email", async () => { const driver = plunkEmail({ apiKey: process.env.PLUNK_API_KEY!, - from: "test@example.com", + from: "no-reply@useplunk.net", }); const htmlBody = "

Test Email

This is a test email

"; const response = await driver.send( - "test@example.com", + "help@bknd.io", "HTML Test", htmlBody, ); @@ -43,10 +43,10 @@ describe.skipIf(ALL_TESTS)("plunk", () => { it("should send with text and html", async () => { const driver = plunkEmail({ apiKey: process.env.PLUNK_API_KEY!, - from: "test@example.com", + from: "no-reply@useplunk.net", }); const response = await driver.send("test@example.com", "Test Email", { - text: "This is plain text", + text: "help@bknd.io", html: "

This is HTML

", }); expect(response).toBeDefined(); @@ -56,14 +56,14 @@ describe.skipIf(ALL_TESTS)("plunk", () => { it("should send to multiple recipients", async () => { const driver = plunkEmail({ apiKey: process.env.PLUNK_API_KEY!, - from: "test@example.com", + from: "no-reply@useplunk.net", }); const response = await driver.send( - "test@example.com", + "help@bknd.io", "Multi-recipient Test", "Test email to multiple recipients", { - to: ["test1@example.com", "test2@example.com"], + to: ["help@bknd.io", "cameronandrewpak@gmail.com"], }, ); expect(response).toBeDefined(); @@ -74,12 +74,12 @@ describe.skipIf(ALL_TESTS)("plunk", () => { it("should throw error for more than 5 recipients", async () => { const driver = plunkEmail({ apiKey: process.env.PLUNK_API_KEY!, - from: "test@example.com", + from: "no-reply@useplunk.net", }); expect( - driver.send("test@example.com", "Test", "Test", { + driver.send("help@bknd.io", "Test", "Test", { to: [ - "test1@example.com", + "help@bknd.io", "test2@example.com", "test3@example.com", "test4@example.com",