fixed test

This commit is contained in:
Giuseppe Digilio
2020-01-17 11:08:09 +01:00
parent 57b007ffe2
commit 49e59c44e1

View File

@@ -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;