feat(user): add not authorized error message in permission check
This commit is contained in:
@@ -302,7 +302,9 @@ describe('User model', () => {
|
||||
it('should throw an authorization error without Flow read permission', async () => {
|
||||
const user = new User();
|
||||
|
||||
expect(() => user.authorizedFlows).toThrowError('NotAuthorized');
|
||||
expect(() => user.authorizedFlows).toThrowError(
|
||||
'The user is not authorized!'
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user