-
Notifications
You must be signed in to change notification settings - Fork 26.2k
test: add an internal helper to populate document.head before a test #46250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ioning render3) This commit renames the packages/private/testing/src/render3.ts -> packages/private/testing/src/utils.ts to avoid using the `render3` term as it used to differentiate VE and Ivy, which is no longer relevant.
This commit reuses the logic of the `withBody` helper and implements the `withHead` based on it.The helper method is useful for tests that rely on a certain tags being present in document's `<head>` element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR was merged into the repository by commit 627cdf3. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This commit reuses the logic of the
withBody
helper and implements thewithHead
based on it.The helper method is useful for tests that rely on a certain tags being present in document's<head>
element.This need was caused by the logic in the
NgOptimizedImage
directive in the #46053. The newly added function is an internal helper (not a public API).PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?