@rxjs-stuff/marbles
Version:
A set of plugins that provide a natural feeling integration with Mocha and Chai for RxJS "marbles" testing.
11 lines (10 loc) • 751 B
TypeScript
import { Observable, UnaryFunction } from 'rxjs';
import { SubscriptionLog } from 'rxjs/internal/testing/SubscriptionLog';
import { TestScheduler } from 'rxjs/testing';
export declare type SubscriptionLoggedObservable<T> = Observable<T> & {
subscriptions: SubscriptionLog[];
};
export declare function isSubscriptionLoggedObservable<T>(obj: any): obj is SubscriptionLoggedObservable<T>;
export declare function wrapLogSubscriptions<T>(scheduler: TestScheduler, source: Observable<T>): SubscriptionLoggedObservable<T>;
export declare type LogSubscriptionsOperatorFunction<T> = UnaryFunction<Observable<T>, SubscriptionLoggedObservable<T>>;
export declare function logSubscriptions<T>(scheduler: TestScheduler): LogSubscriptionsOperatorFunction<T>;