MockDaffNavigationFacade
A mock of the DaffNavigationFacade used to remove any interaction with the ngrx store. This mock should be imported into tests using the DaffNavigationStateTestingModule.
import { MockDaffNavigationFacade } from '@daffodil/navigation/state/testing'
@Injectable()
class MockDaffNavigationFacade<<T extends DaffGenericNavigationTree<T>>> implements DaffNavigationFacadeInterface<T> {
loading$: BehaviorSubject<boolean>
tree$: BehaviorSubject<T>
errors$: BehaviorSubject<DaffStateError[]>
dispatch(action)
}
Properties
Name | Type | Description |
---|---|---|
loading$ | BehaviorSubject<boolean> | |
tree$ | BehaviorSubject<T> | |
errors$ | BehaviorSubject<DaffStateError[]> | |
dispatch |