Skip to content

docs: fix docs and associated code snippets for enabling more macro tasks in fakeAsync()#35778

Closed
gkalpak wants to merge 1 commit intoangular:masterfrom
gkalpak:docs-fix-testing-examples
Closed

docs: fix docs and associated code snippets for enabling more macro tasks in fakeAsync()#35778
gkalpak wants to merge 1 commit intoangular:masterfrom
gkalpak:docs-fix-testing-examples

Conversation

@gkalpak
Copy link
Copy Markdown
Member

@gkalpak gkalpak commented Feb 29, 2020

In the testing guide, there is a section discussing configuring fakeAsync() to handle more macro tasks (e.g. HTMLCanvasElement#toBlob()).

Previously, the corresponding code snippets (some of which were hard-coded in the guide) were incorrect/incomplete and the associated tests were broken. This was discovered while enabling docs examples unit tests in #34374.

This commit fixes the code snippets and associated tests and ensures the examples used in the guide come from an example app (i.e. are not hard-coded).

Note: The docs examples unit tests are currently not run on CI. This will be fixed in #34374.

…asks in `fakeAsync()`

In the `testing` guide, there is a section discussing configuring
`fakeAsync()` to handle more macro tasks (e.g.
`HTMLCanvasElement#toBlob()`).

Previously, the corresponding code snippets (some of which were
hard-coded in the guide) were incorrect/incomplete and the associated
tests were broken. This was discovered while enabling docs examples unit
tests in angular#34374.

This commit fixes the code snippets and associated tests and ensures the
examples used in the guide come from an example app (i.e. are not
hard-coded).

Note: The docs examples unit tests are currently not run on CI. This
will be fixed in angular#34374.
@pullapprove pullapprove Bot requested a review from kara February 29, 2020 16:30
@gkalpak gkalpak added area: core Issues related to the framework runtime comp: docs area: zones Issues related to zone.js action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release type: bug/fix labels Feb 29, 2020
@ngbot ngbot Bot modified the milestone: needsTriage Feb 29, 2020
@mary-poppins
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@JiaLiPassion JiaLiPassion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thank you!

@atscott atscott closed this in 8eb4a9d Mar 2, 2020
atscott pushed a commit that referenced this pull request Mar 2, 2020
…asks in `fakeAsync()` (#35778)

In the `testing` guide, there is a section discussing configuring
`fakeAsync()` to handle more macro tasks (e.g.
`HTMLCanvasElement#toBlob()`).

Previously, the corresponding code snippets (some of which were
hard-coded in the guide) were incorrect/incomplete and the associated
tests were broken. This was discovered while enabling docs examples unit
tests in #34374.

This commit fixes the code snippets and associated tests and ensures the
examples used in the guide come from an example app (i.e. are not
hard-coded).

Note: The docs examples unit tests are currently not run on CI. This
will be fixed in #34374.

PR Close #35778
@gkalpak gkalpak deleted the docs-fix-testing-examples branch March 3, 2020 10:55
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime area: zones Issues related to zone.js cla: yes target: patch This PR is targeted for the next patch release type: bug/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants