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
- Host: GitHub
- URL: https://github.com/kryptonbd/rxjs-testing
- Owner: KryptonBD
- Created: 2024-10-22T08:10:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-22T08:11:07.000Z (about 1 year ago)
- Last Synced: 2025-08-02T04:52:45.057Z (5 months ago)
- Topics: marbles, marbles-testing, rxjs, testing
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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