Skip to content

Commit

Permalink
change test desciptions
Browse files Browse the repository at this point in the history
  • Loading branch information
CeEv committed Oct 11, 2023
1 parent 1104baa commit 88a8237
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('AuthorizationReferenceService', () => {
return { context, userId: user.id, entityId: entity.id, entityName };
};

it('should reject with ForbiddenLoggableException', async () => {
it('should reject with this error', async () => {
const { context, userId, entityId, entityName } = setup();

await expect(service.hasPermissionByReferences(userId, entityName, entityId, context)).rejects.toThrow(
Expand All @@ -131,7 +131,7 @@ describe('AuthorizationReferenceService', () => {
return { context, userId: user.id, entityId: entity.id, entityName };
};

it('should reject with throwed error', async () => {
it('should reject with this error', async () => {
const { context, userId, entityId, entityName } = setup();

await expect(service.hasPermissionByReferences(userId, entityName, entityId, context)).rejects.toThrow(
Expand Down

0 comments on commit 88a8237

Please sign in to comment.