diff --git a/apps/api/src/campaign-application/campaign-application.service.spec.ts b/apps/api/src/campaign-application/campaign-application.service.spec.ts index d0c09359..09cbdda2 100644 --- a/apps/api/src/campaign-application/campaign-application.service.spec.ts +++ b/apps/api/src/campaign-application/campaign-application.service.spec.ts @@ -485,7 +485,9 @@ describe('CampaignApplicationService', () => { prismaMock.campaignApplication.findFirst.mockResolvedValue(mockSingleCampaignApplication) await expect( service.getFile('id', false, { ...mockPerson, organizer: { id: 'different-id' } }), - ).rejects.toThrow(new ForbiddenException('User is not admin or organizer of the campaignApplication')) + ).rejects.toThrow( + new ForbiddenException('User is not admin or organizer of the campaignApplication'), + ) }) it('should allow admin users to see files belonging to other users', async () => { @@ -496,7 +498,9 @@ describe('CampaignApplicationService', () => { } as File) await expect( service.getFile('id', true, { ...mockPerson, organizer: { id: 'different-id' } }), - ).resolves.not.toThrow(new ForbiddenException('User is not admin or organizer of the campaignApplication')) + ).resolves.not.toThrow( + new ForbiddenException('User is not admin or organizer of the campaignApplication'), + ) }) }) })