Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Testing of promise based sequences #331

Closed
metrofun opened this issue Oct 22, 2014 · 2 comments
Closed

Testing of promise based sequences #331

metrofun opened this issue Oct 22, 2014 · 2 comments

Comments

@metrofun
Copy link

Right now for example not possible to test Rx.Observable.fromPromise using TestScheduler & ReactiveTest.

As an option I can suggest implementing MockPromise or scheduleAbsolute's callback should start returning a Promise, to notify when the scheduled task has ended.

mattpodwysocki added a commit that referenced this issue Nov 13, 2014
@mattpodwysocki
Copy link
Member

@metrofun now fixed with the introduction of the MockPromise and creation via TestScheduler.prototype.createResolvedPromise or TestScheduler.prototype.createRejectedPromise. Just need to create the documentation for it.

@metrofun
Copy link
Author

@mattpodwysocki That's cool! Even though I will have to refactor my workarounds :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants