style: apply standard ESLint & Prettier formatting across backend
Deploy Canina / deploy (push) Successful in 4m58s

This commit is contained in:
parsa aghaei committed 2026-07-29 15:41:53 +03:30
1 parent ae636c8b03
commit 62bd8811fa
66 files changed
+1398 -607

No files matched your search

+7 -5
View File
@@ -7,16 +7,18 @@ describe('AuthController', () => {
let service: AuthService;
const mockAuthService = {
sendOtp: jest.fn().mockResolvedValue({ success: true, message: 'کد تایید ارسال شد' }),
verifyOtp: jest.fn().mockResolvedValue({ success: true, data: { accessToken: 'token' } }),
sendOtp: jest
.fn()
.mockResolvedValue({ success: true, message: 'کد تایید ارسال شد' }),
verifyOtp: jest
.fn()
.mockResolvedValue({ success: true, data: { accessToken: 'token' } }),
};
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [AuthController],
providers: [
{ provide: AuthService, useValue: mockAuthService },
],
providers: [{ provide: AuthService, useValue: mockAuthService }],
}).compile();
controller = module.get<AuthController>(AuthController);