From 49e59c44e1c0e2ed68d915a6d9931ecb29583146 Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Fri, 17 Jan 2020 11:08:09 +0100 Subject: [PATCH] fixed test --- src/app/shared/testing/auth-request-service-stub.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/testing/auth-request-service-stub.ts b/src/app/shared/testing/auth-request-service-stub.ts index b28c02d54a..dc061e2ce6 100644 --- a/src/app/shared/testing/auth-request-service-stub.ts +++ b/src/app/shared/testing/auth-request-service-stub.ts @@ -44,7 +44,7 @@ export class AuthRequestServiceStub { authStatusStub.authenticated = false; break; case 'status': - const token = (options.headers as any).lazyUpdate[1].value; + const token = ((options.headers as any).lazyUpdate[1]) ? (options.headers as any).lazyUpdate[1].value : null; if (this.validateToken(token)) { authStatusStub.authenticated = true; authStatusStub.token = this.mockTokenInfo;