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
feat(material/schematics): add fn for adding attrs to templates #24550
feat(material/schematics): add fn for adding attrs to templates #24550
Conversation
wagnermaciel
commented
Mar 8, 2022
- create and unit test addAttribute fn
* create and unit test addAttribute fn
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, a test scnario for multiple arguments on a single element would be cool.
@devversion That's outside of the scope of what's needed for the migration. We'll only need to add a single one. Would be easy to add that functionality in if it becomes relevant in the future |
My philosophy usually is: if you are building a generic utility like this, and this is a common scenario usually, then it should be tested as it's low-effort (4-5 lines), proofs that the API can be useful for other usages as well, and works (because future uses might not be testing all code paths -- its easy to forget about this then 😛 ) |
@devversion I think I may have misunderstood you. Did you want to test using the
|
@wagnermaciel I was just thinking of having a test where you'd call |
@devversion Ah, gotcha. No problem then, I'll just throw in a test for it in a follow-up PR 👍🏽 |
…lar#24550) * create and unit test addAttribute fn
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. |