GitHub

MockDaffPaymentPageFacade

Mocks out facade fields and methods for testing purposes.

import { MockDaffPaymentPageFacade } from '@daffodil/payment/state/testing'
@Injectable()
class MockDaffPaymentPageFacade implements DaffPaymentPageFacadeInterface {
  loading$: BehaviorSubject<boolean>
  errors$: BehaviorSubject<DaffStateError[]>
  dispatch(action: Action<string>)
}

Properties

Name Type Description
loading$ BehaviorSubject<boolean>

Whether there is a pending payment operation.

errors$ BehaviorSubject<DaffStateError[]>

A list of payment errors, if any.

dispatch