mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
test(docs-infra): fix practical-observable-usage docs example tests with RxJS v7 (#43880)
Due to how `debounceTime()` works in RxJS v7, Jasmine's mock clock was not enough to trigger it. This commit fixes it by providing a similar mock clock that is able to mock all of `Date.now()`, `setInterval()` and `setTimeout()`. PR Close #43880
This commit is contained in:
committed by
Alex Rickabaugh
parent
bc5e29592c
commit
0fc4e66f6e
@@ -437,7 +437,7 @@ jobs:
|
||||
assert(actual === expected, 'Expected RxJS v' + expected + ', but found v' + actual + '.');
|
||||
"
|
||||
# Exclude some examples that are not yet compatible with v7.
|
||||
- run: yarn --cwd aio example-e2e --cliSpecsConcurrency=5 --shard=${CIRCLE_NODE_INDEX}/${CIRCLE_NODE_TOTAL} --exclude=practical-observable-usage --exclude=upgrade-module --exclude=upgrade-phonecat
|
||||
- run: yarn --cwd aio example-e2e --cliSpecsConcurrency=5 --shard=${CIRCLE_NODE_INDEX}/${CIRCLE_NODE_TOTAL} --exclude=upgrade-module --exclude=upgrade-phonecat
|
||||
|
||||
# This job should only be run on PR builds, where `CI_PULL_REQUEST` is not `false`.
|
||||
aio_preview:
|
||||
|
||||
Reference in New Issue
Block a user