Skip to content
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

Write some meaningful tests for UserCardComponent #1481

Open
NicMcPhee opened this issue Feb 5, 2024 · 1 comment
Open

Write some meaningful tests for UserCardComponent #1481

NicMcPhee opened this issue Feb 5, 2024 · 1 comment

Comments

@NicMcPhee
Copy link
Member

We currently just confirm that the component builds. It would be nice to check something, but given that there's no logic, I'm not sure what that would look like. Can we test that the @Input works?

@NicMcPhee
Copy link
Member Author

NicMcPhee commented Feb 5, 2024

It does look like we can test through the @Input fields. "Testing Angular Components With @Input()" has examples of how we might do that with a host component created just for the purposes of testing.

The Angular documentation also provides examples of using a test host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant