libs/auth/state/testing/src/mock-auth-facade.ts
import { Injectable } from '@angular/core';
import { Action } from '@ngrx/store';
import { BehaviorSubject } from 'rxjs';
import { DaffAuthFacadeInterface } from '@daffodil/auth/state';
import { DaffStateError } from '@daffodil/core/state';
/**
* @inheritdoc
*/
@Injectable({ providedIn: 'root' })
export class MockDaffAuthFacade implements DaffAuthFacadeInterface {
loading$ = new BehaviorSubject<boolean>(false);
errors$ = new BehaviorSubject<DaffStateError[]>([]);
loggedIn$ = new BehaviorSubject<boolean>(false);
dispatch(action: Action) {};
}