From b511ec88d97034b2053dadb1b37c3fba10902118 Mon Sep 17 00:00:00 2001 From: Sam Odum Date: Wed, 17 Jan 2024 13:26:14 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(emailOtp.test.ts):=20use=20a?= =?UTF-8?q?=20random=20test=20email=20instead=20of=20a=20hardcoded=20email?= =?UTF-8?q?=20to=20improve=20test=20reliability=20and=20maintainability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/services/emailOtp.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/services/emailOtp.test.ts b/tests/unit/services/emailOtp.test.ts index f464422..2e66e5d 100644 --- a/tests/unit/services/emailOtp.test.ts +++ b/tests/unit/services/emailOtp.test.ts @@ -19,7 +19,7 @@ describe('EmailOtp class', () => { it('should send email code and return EmailCodeSendRsp', async () => { const emailOTP = new EmailOTP(axiosInstance); const req: EmailCodeSendReq = { - email: 'test@example.com', + email: Utils.createRandomTestEmail(), create: true, };