Skip to content

Commit

Permalink
Fixed lint issue in oidc-auth.guard.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil-verma-gl committed Jul 2, 2024
1 parent e29c7a8 commit f7319af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/core/src/lib/auth/oidc/oidc-auth.guard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ describe('OidcAuthGuard', () => {
}
};

const handleObservableResult = (result: Observable<boolean | UrlTree>): Promise<boolean | UrlTree> => {
return new Promise<boolean | UrlTree>((resolve) => {
const handleObservableResult = (result: Observable<boolean | UrlTree>): Promise<boolean | UrlTree> =>
new Promise<boolean | UrlTree>((resolve) => {
result.subscribe((value) => {
resolve(value);
});
});
};

describe('canActivate', () => {
it('should return true if is authenticated', async () => {
Expand Down

0 comments on commit f7319af

Please sign in to comment.