diff --git a/lib/core/src/lib/auth/oidc/oidc-auth.guard.spec.ts b/lib/core/src/lib/auth/oidc/oidc-auth.guard.spec.ts index a0a566bc2bd..d4ad6923f8a 100644 --- a/lib/core/src/lib/auth/oidc/oidc-auth.guard.spec.ts +++ b/lib/core/src/lib/auth/oidc/oidc-auth.guard.spec.ts @@ -48,13 +48,12 @@ describe('OidcAuthGuard', () => { } }; - const handleObservableResult = (result: Observable): Promise => { - return new Promise((resolve) => { + const handleObservableResult = (result: Observable): Promise => + new Promise((resolve) => { result.subscribe((value) => { resolve(value); }); }); - }; describe('canActivate', () => { it('should return true if is authenticated', async () => {