Skip to content

Commit e0b5acb

Browse files
authored
docs: mention jasmine.clock().mockDate() (#6386)
1 parent c23e567 commit e0b5acb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs_app/content/6-to-7-change-summary.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ This document contains a detailed list of changes between RxJS 6.x and RxJS 7.x,
254254

255255
- The observable returned by the `debounce` operator's duration selector must emit a next notification to end the duration. Complete notifications no longer end the duration.
256256

257+
### debounceTime
258+
259+
- The `debounceTime` implementation is more efficient and no longer schedules an action for each received next notification. However, because the implementation now uses the scheduler's concept of time, any tests using Jasmine's `clock` will need to ensure that [`jasmine.clock().mockDate()`](https://jasmine.github.io/api/edge/Clock.html#mockDate) is called after `jasmine.clock().install()` - because Jasmine does not mock `Date.now()` by default.
260+
257261
### defaultIfEmpty
258262

259263
- Generic signatures have changed. Do not explicitly pass generics.

0 commit comments

Comments
 (0)