UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

38 lines 1.44 kB
"use strict"; function hot(marbles, values, error) { if (!global.rxTestScheduler) { throw 'tried to use hot() in async test'; } return global.rxTestScheduler.hot.apply(global.rxTestScheduler, arguments); } exports.hot = hot; function cold(marbles, values, error) { if (!global.rxTestScheduler) { throw 'tried to use cold() in async test'; } return global.rxTestScheduler.cold.apply(global.rxTestScheduler, arguments); } exports.cold = cold; function expectObservable(observable, unsubscriptionMarbles) { if (unsubscriptionMarbles === void 0) { unsubscriptionMarbles = null; } if (!global.rxTestScheduler) { throw 'tried to use expectObservable() in async test'; } return global.rxTestScheduler.expectObservable.apply(global.rxTestScheduler, arguments); } exports.expectObservable = expectObservable; function expectSubscriptions(actualSubscriptionLogs) { if (!global.rxTestScheduler) { throw 'tried to use expectSubscriptions() in async test'; } return global.rxTestScheduler.expectSubscriptions.apply(global.rxTestScheduler, arguments); } exports.expectSubscriptions = expectSubscriptions; function time(marbles) { if (!global.rxTestScheduler) { throw 'tried to use time() in async test'; } return global.rxTestScheduler.time.apply(global.rxTestScheduler, arguments); } exports.time = time; //# sourceMappingURL=marble-testing.js.map