An open API service indexing awesome lists of open source software.

https://github.com/kryptonbd/rxjs-testing

Rxjs's marble and assert pattern random practice
https://github.com/kryptonbd/rxjs-testing

marbles marbles-testing rxjs testing

Last synced: 5 months ago
JSON representation

Rxjs's marble and assert pattern random practice

Awesome Lists containing this project

README

          

# RxJS Testing

Rxjs's marble and assert pattern random practice

## Marble Testing

- **-** represent frame of virtual time   _-a--b_
- **#** represent error   _-a--b#_
- **()** represent synchronous grouping   _-(abc)---_
- **|** represent complete   _(abc|)_
- **^** represent subscription point   _-a--b-^-c-_
- **!** represent unsubscribe   _4s !_

---

**hot** - observable whose subscription starts when the test begins

**cold** - observable that will behave as though it's already "running" when the test begins

**expectObservable** - schedules an assertion for when the TestScheduler flushes