The manner in which TestScheduler parses a frame-group seems wrong/counter-intuitive? #7223
-
I am not sure whether this is a bug or working as intended so I thought I'd ask a question instead. Given the documentation regarding time-progression syntax, stating:
what I would expect to be the case would be:
It seems as if the parenthesis are counted as a frame and each value-emission within that frame is also counted as a frame. Testing with:
Gives me:
While I would expect:
How would I test a scenario where I have 2 emissions per frame? Is that a valid scenario? Or are frames implicitly bound to a single emission? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is as intended. From the the RxJS docs:
|
Beta Was this translation helpful? Give feedback.
-
I can't speak to the design decisions for the test scheduler in RxJs, but here are related issues:
You can also look into using https://github.com/kwonoj/rx-sandbox for testing |
Beta Was this translation helpful? Give feedback.
Hi @RobertDiebels
I can't speak to the design decisions for the test scheduler in RxJs, but here are related issues:
You can also look into using https://github.com/kwonoj/rx-sandbox for testing