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

test: Add tests for remove hosts from group modal #2126

Merged
merged 2 commits into from
Jan 2, 2024

Conversation

gkarat
Copy link
Contributor

@gkarat gkarat commented Dec 17, 2023

This adds some new unit tests for the component.

@gkarat gkarat added the tests label Dec 17, 2023
@gkarat gkarat self-assigned this Dec 17, 2023
@gkarat gkarat requested a review from a team as a code owner December 17, 2023 16:57
@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a95b702) 57.51% compared to head (0f6cc54) 57.51%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2126   +/-   ##
=======================================
  Coverage   57.51%   57.51%           
=======================================
  Files         193      193           
  Lines        6198     6198           
  Branches     1718     1718           
=======================================
  Hits         3565     3565           
  Misses       2633     2633           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gkarat
Copy link
Contributor Author

gkarat commented Dec 17, 2023

/retest

Copy link
Contributor

@mkholjuraev mkholjuraev left a comment

Choose a reason for hiding this comment

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

LGTM! @gkarat thank you.

expect(removeHostsFromGroup).toBeCalledWith('g1', ['h1']);
});

it('can remove more groups', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
it('can remove more groups', async () => {
it('can remove multiple groups', async () => {

A tiny nitpick :)

@gkarat gkarat merged commit a18b479 into RedHatInsights:master Jan 2, 2024
1 of 2 checks passed
@gkarat gkarat deleted the remove-hosts-group-tests branch January 2, 2024 09:29
@gkarat
Copy link
Contributor Author

gkarat commented Jan 2, 2024

🎉 This PR is included in version 1.62.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@gkarat gkarat added the released label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants