Skip to content

Commit

Permalink
fix: permission service unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-w committed Jan 3, 2025
1 parent 3f1be42 commit 6e34d2f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ describe('PermissionService', () => {
it('should throw a ForbiddenException if collaborator is not found', async () => {
const spaceId = 'space-id';
prismaServiceMock.collaborator.findMany.mockResolvedValue([]);
await expect(service['getRoleBySpaceId'](spaceId)).toBeNull();
const result = await service['getRoleBySpaceId'](spaceId);
await expect(result).toBeNull();
});
});

Expand Down

0 comments on commit 6e34d2f

Please sign in to comment.