Skip to content

Commit

Permalink
Changed the exception message for a check in requestToken method #44
Browse files Browse the repository at this point in the history
  • Loading branch information
raghunandanarava committed Jun 6, 2022
1 parent ad61e5f commit 66bbc4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/token/token.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('TokenService', () => {
describe('requestToken', () => {
it('should fail if empty issuer is provided', async () => {
await expect(service.requestToken(undefined)).rejects.toThrow(
'Received issuer does not contain the token endpoint to get a token',
'Received issuer is empty',
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/token/token.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class TokenService {
async requestToken(issuer: Issuer): Promise<any> {
if (issuer === undefined) {
throw new HttpException(
'Received issuer does not contain the token endpoint to get a token',
'Received issuer is empty',
HttpStatus.BAD_REQUEST,
);
}
Expand Down

0 comments on commit 66bbc4e

Please sign in to comment.