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.
This commit is contained in:
2026-05-15 21:45:29 -04:00
parent 74b3de54ed
commit 1e480a9f87
@@ -15,7 +15,7 @@ describe("better auth email otp", () => {
const email = sentEmails[0]!; const email = sentEmails[0]!;
assert.equal(email.to, "user@example.com"); 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.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.text ?? "", /Your ELY Browser sign-in code is \d{6}\./);
assert.match(email.html ?? "", /<strong[^>]*>\d{6}<\/strong>/); assert.match(email.html ?? "", /<strong[^>]*>\d{6}<\/strong>/);