For example, I have a function like this:
export function timeRange(start: number, end: number): Rx.Observable {
return Rx.Observable.interva
You create either a TestScheduler or VirtualTimeScheduler and pass it as the optional second argument to Observable.Interval. In your case you'd simply add an optional scheduler argument to timeRange and pass the value on.
These test schedulers allow you to "pass time" without waiting for actual time to elapse.
For more information and examples, see Testing your Rx Application