style: apply standard ESLint & Prettier formatting across backend
Deploy Canina / deploy (push) Successful in 4m58s
Deploy Canina / deploy (push) Successful in 4m58s
This commit is contained in:
1 parent
ae636c8b03
commit
62bd8811fa
66 files changed
+1398
-607
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user