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

Dominick/ Closes #613 Add unit test for <AlertTitle /> component #618

Merged
merged 5 commits into from
Oct 30, 2024

Conversation

HoldUpFjord
Copy link
Contributor

@HoldUpFjord HoldUpFjord commented Oct 22, 2024

Added a unit test to verify that the title prop in AlertTitle.tsx renders correctly when passed as a string.

Copy link

appwrite bot commented Oct 22, 2024

Gridiron Survivor Application 6616ea581ef9f5521c7d

Function ID Status Action
Your function deployment has failed. Please check the logs for more details and retry.

Project name: Gridiron Survivor Application
Project ID: 6616ea581ef9f5521c7d

Function ID Status Action
userAuth 6626fef885a9f630442b failed Failed View Logs

Only deployments on the production branch are activated automatically. If you'd like to activate this deployment, navigate to your deployments. Learn more about Appwrite Function deployments.

💡 Did you know?
You can use Avatars API to generate QR code for any text or URLs

Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gridiron-survivor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2024 5:57pm
gridiron-survivor-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2024 5:57pm

import { AlertTitle } from './AlertTitle';

describe('AlertTitle', () => {
it('renders the title text', () => {
Copy link
Contributor

@choir241 choir241 Oct 22, 2024

Choose a reason for hiding this comment

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

Q: Based on your PR description, how are we making sure that the passed in string is a string? NIT: Your PR description, ensuring it matches the declared prop type, which is a string. doesn't match what you're testing here. Please update this.

Copy link
Contributor

@mhchen mhchen Oct 22, 2024

Choose a reason for hiding this comment

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

Doesn't TypeScript do this already? Why would it need a separate test?

Copy link
Contributor

Choose a reason for hiding this comment

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

@mhchen it was more of a question about the PR description itself

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can do! @choir241 does this work?

@Danielle254
Copy link
Contributor

@HoldUpFjord you can add the statement "Closes #613 " to the top of your PR description. This not only makes it easy for reviewers to read the details of the issue, but it will also close the issue when this ticket gets moved to Done on the sprint board.

@HoldUpFjord HoldUpFjord changed the title Dominick/ 613 Add unit test for <AlertTitle /> component Dominick/ Closes #613 Add unit test for <AlertTitle /> component Oct 23, 2024
@HoldUpFjord HoldUpFjord merged commit 7d3529e into develop Oct 30, 2024
5 checks passed
@HoldUpFjord HoldUpFjord deleted the dominick/alert-title-test branch October 30, 2024 19:00
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

Successfully merging this pull request may close these issues.

6 participants