diff --git a/tests/resolvers/Mutation/createOrganization.spec.ts b/tests/resolvers/Mutation/createOrganization.spec.ts index be2da2d6ce..548750ccf3 100644 --- a/tests/resolvers/Mutation/createOrganization.spec.ts +++ b/tests/resolvers/Mutation/createOrganization.spec.ts @@ -195,8 +195,8 @@ describe("resolvers -> Mutation -> createOrganization", () => { it(`creates the organization without image and returns it`, async () => { vi.spyOn(uploadImage, "uploadImage").mockImplementation( async (newImagePath: string, imageAlreadyInDbPath: string) => ({ - newImagePath, - imageAlreadyInDbPath, + newImagePath: newImagePath || "", + imageAlreadyInDbPath: imageAlreadyInDbPath || "", }), ); const args: MutationCreateOrganizationArgs = {