src/app/tests/mocks/auth.ts
Mock for AuthService.
Properties |
|
Methods |
|
Public clearLocalSecurity |
clearLocalSecurity()
|
Defined in src/app/tests/mocks/auth.ts:19
|
Returns :
void
|
logout |
logout()
|
Defined in src/app/tests/mocks/auth.ts:14
|
Returns :
Observable<SecurityInfo>
|
Public securityInfo |
securityInfo:
|
Defined in src/app/tests/mocks/auth.ts:11
|
Public securityInfoSubject |
securityInfoSubject:
|
Defined in src/app/tests/mocks/auth.ts:12
|
import { Observable, Subject, of } from 'rxjs';
import { SecurityInfo } from '../../shared/model/about/security-info.model';
/**
* Mock for AuthService.
*
* @author Gunnar Hillert
*/
export class MockAuthService {
public securityInfo = new SecurityInfo();
public securityInfoSubject = new Subject<SecurityInfo>();
logout(): Observable<SecurityInfo> {
this.securityInfo.reset();
return of(this.securityInfo);
}
public clearLocalSecurity() {
this.securityInfo.reset();
}
}