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

chore: Add unit tests for utils #1166

Merged
merged 26 commits into from
Feb 28, 2025
Merged

chore: Add unit tests for utils #1166

merged 26 commits into from
Feb 28, 2025

Conversation

vardanbansal-harness
Copy link
Contributor

@vardanbansal-harness vardanbansal-harness commented Feb 27, 2025

Enhances test coverage by adding unit tests for utility functions to improve reliability and maintainability.

Copy link

netlify bot commented Feb 27, 2025

Deploy Preview for harness-design ready!

Name Link
🔨 Latest commit b325b50
🔍 Latest deploy log https://app.netlify.com/sites/harness-design/deploys/67c24bfa113de700087e9134
😎 Deploy Preview https://deploy-preview-1166--harness-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 27, 2025

Deploy Preview for harness-xd-review ready!

Name Link
🔨 Latest commit b325b50
🔍 Latest deploy log https://app.netlify.com/sites/harness-xd-review/deploys/67c24bfa56629b0008f033bd
😎 Deploy Preview https://deploy-preview-1166--harness-xd-review.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@vardanbansal-harness vardanbansal-harness marked this pull request as ready for review February 28, 2025 19:42
removeLabelError?: string
}

const LabelsList: React.FC<LabelsListProps> = ({ labels, handleDelete, addLabelError, removeLabelError }) => (
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this a new view being added in this PR?
is this required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cjlee01 I see you added this, do we need it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's a similar component here packages/ui/src/views/repo/pull-request/components/labels/pull-request-labels-list.tsx

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cjlee1 I've removed this file for now, I see it's not used anywhere. Please add it back in a separate PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I added then it was refactored but this reference was not used and that’s why I see duplication
@vardanbansal-harness

@vardanbansal-harness vardanbansal-harness merged commit 3f0f1b3 into main Feb 28, 2025
16 checks passed
@vardanbansal-harness vardanbansal-harness deleted the add-uts-for-utils branch February 28, 2025 23:56
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.

5 participants