Skip to content

Commit

Permalink
docs(marble-testing.md): fix #known-issues link (#3670)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayphelps authored and benlesh committed May 9, 2018
1 parent e677731 commit dc66731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/marble-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

We can test our _asynchronous_ RxJS code _synchronously_ and deterministically by virtualizing time using the TestScheduler. ASCII **marble diagrams** provide a visual way for us to represent the behavior of an Observable. We can use them to assert that a particular Observable behaves as expected, as well as to create [hot and cold Observables](https://medium.com/@benlesh/hot-vs-cold-observables-f8094ed53339) we can use as mocks.

> At this time the TestScheduler can only be used to test code that uses timers, like delay/debounceTime/etc (i.e. it uses AsyncScheduler with delays > 1). If the code consumes a Promise or does scheduling with AsapScheduler/AnimationFrameScheduler/etc it cannot be reliably tested with TestScheduler, but instead should be tested more traditionally. See the [Known Issues](#Known-Issues) section for more details.
> At this time the TestScheduler can only be used to test code that uses timers, like delay/debounceTime/etc (i.e. it uses AsyncScheduler with delays > 1). If the code consumes a Promise or does scheduling with AsapScheduler/AnimationFrameScheduler/etc it cannot be reliably tested with TestScheduler, but instead should be tested more traditionally. See the [Known Issues](#known-issues) section for more details.
```ts
const testScheduler = new TestScheduler((actual, expected) => {
Expand Down

0 comments on commit dc66731

Please sign in to comment.