From 0e2fed53ee52e61de92fdc29692a5e3a296d0377 Mon Sep 17 00:00:00 2001 From: caiodasilva2005 Date: Sat, 14 Dec 2024 14:10:11 -0500 Subject: [PATCH] #3060-fixed tests --- src/backend/tests/unmocked/organization.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/tests/unmocked/organization.test.ts b/src/backend/tests/unmocked/organization.test.ts index 2c0affdff9..dcfbdcf574 100644 --- a/src/backend/tests/unmocked/organization.test.ts +++ b/src/backend/tests/unmocked/organization.test.ts @@ -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); @@ -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);