690419:1831 feat: update CI/CD to use SSH key authentication #05
This commit is contained in:
@@ -99,7 +99,17 @@ describe('CorrespondenceController', () => {
|
||||
mockResult
|
||||
);
|
||||
|
||||
const mockReq = { user: { user_id: 1, roles: [] } };
|
||||
const mockReq = {
|
||||
user: {
|
||||
user_id: 1,
|
||||
username: 'testuser',
|
||||
password: 'hashedpassword',
|
||||
email: 'test@example.com',
|
||||
publicId: '019505a1-7c3e-7000-8000-abc123def456',
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
};
|
||||
(mockCorrespondenceService.findOneByUuid as jest.Mock).mockResolvedValue({
|
||||
id: 1,
|
||||
uuid: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
|
||||
|
||||
Reference in New Issue
Block a user