Skip to content

Commit

Permalink
#3060-fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
caiodasilva2005 committed Dec 14, 2024
1 parent 61b6cf8 commit 0e2fed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/tests/unmocked/organization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('Organization Tests', () => {
it('Succeeds and updates all the images', async () => {
const testBatman = await createTestUser(batmanAppAdmin, orgId);
(uploadFile as Mock).mockImplementation((file) => {
return Promise.resolve({ id: `uploaded-${file.originalname}` });
return Promise.resolve({ name: `${file.originalname}`, id: `uploaded-${file.originalname}` });
});

await OrganizationsService.setImages(file1, file2, testBatman, organization);
Expand Down Expand Up @@ -240,7 +240,7 @@ describe('Organization Tests', () => {
it('Succeeds and updates the logo', async () => {
const testBatman = await createTestUser(batmanAppAdmin, orgId);
(uploadFile as Mock).mockImplementation((file) => {
return Promise.resolve({ id: `uploaded-${file.originalname}` });
return Promise.resolve({ name: `${file.originalname}`, id: `uploaded-${file.originalname}` });
});

await OrganizationsService.setLogoImage(file1, testBatman, organization);
Expand Down

0 comments on commit 0e2fed5

Please sign in to comment.