From 1e480a9f87bec5663539cf5a67e41b03e8e0fb9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Fri, 15 May 2026 21:45:29 -0400 Subject: [PATCH] Update OTP test to match the new browser@elydora.com sender The wrangler.toml + better_auth.ts move from auth@ to browser@elydora.com left this assertion behind, so `npm test` failed pre-deploy. Realign the expected `from` field and the worker's test suite is green again. --- cloudflare/tests/better_auth_email_otp.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudflare/tests/better_auth_email_otp.test.ts b/cloudflare/tests/better_auth_email_otp.test.ts index b7197a7..c35f659 100644 --- a/cloudflare/tests/better_auth_email_otp.test.ts +++ b/cloudflare/tests/better_auth_email_otp.test.ts @@ -15,7 +15,7 @@ describe("better auth email otp", () => { const email = sentEmails[0]!; assert.equal(email.to, "user@example.com"); - assert.deepEqual(email.from, { email: "auth@elydora.com", name: "ELY Browser" }); + assert.deepEqual(email.from, { email: "browser@elydora.com", name: "ELY Browser" }); assert.equal(email.subject, "Your ELY Browser sign-in code"); assert.match(email.text ?? "", /Your ELY Browser sign-in code is \d{6}\./); assert.match(email.html ?? "", /]*>\d{6}<\/strong>/);