UNPKG

@hirez_io/observer-spy

Version:

A simple little class that helps making Observable testing a breeze

12 lines 557 B
import { Subscription, Observable, Unsubscribable } from 'rxjs'; import { ObserverSpy } from '.'; import { ObserverSpyConfig } from './observer-spy'; export declare class SubscriberSpy<T> extends ObserverSpy<T> implements Unsubscribable { subscription: Subscription; constructor(observableUnderTest: Observable<T>, config?: ObserverSpyConfig); unsubscribe(): void; } export declare class ObserverSpyWithSubscription<T> extends SubscriberSpy<T> { constructor(observableUnderTest: Observable<T>); } //# sourceMappingURL=subscriber-spy.d.ts.map