Skip to content

Conversation

naorpeled
Copy link
Contributor

@naorpeled naorpeled commented Aug 5, 2023

What:

Increased the tests coverage of the logRoles and prettyRoles functions in the role helpers file,
at the moment cases with hidden = true option were not covered.

Why:

To further understand the scope of #1201 I've added these tests, I think it's good to have them in the repo.

Checklist:

  • Documentation added to the
    docs site
  • Tests
  • TypeScript definitions updated
  • Ready to be merged

@naorpeled naorpeled changed the title feat(role-helpers): add some tests and refine TS types" feat(role-helpers): add some tests and refine TS types Aug 5, 2023
Copy link
Member

@MatanBobi MatanBobi left a comment

Choose a reason for hiding this comment

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

Thanks for this one @naorpeled!
Left a minor comment.

@naorpeled naorpeled requested a review from MatanBobi August 6, 2023 10:14
Copy link
Member

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @naorpeled.
Because this PR contains 2 changes (types, and additional tests) I think it would be better to also create 2 focused PR.
This makes it easier to follow, and we have more control over the releases/history.

@naorpeled
Copy link
Contributor Author

Thanks for the PR @naorpeled.
Because this PR contains 2 changes (types, and additional tests) I think it would be better to also create 2 focused PR.
This makes it easier to follow, and we have more control over the releases/history.

Fair point.
Will do.

@naorpeled
Copy link
Contributor Author

naorpeled commented Aug 11, 2023

@timdeschryver thanks for the great feedback.
I'm heading off to sleep, will make the adjustments tomorrow 🙏

@naorpeled
Copy link
Contributor Author

Hey @timdeschryver,
I've updated the PR based on your CR.
Also opened this PR for the type defs.

@naorpeled naorpeled changed the title feat(role-helpers): add some tests and refine TS types test(role-helpers): improve coverage of logRoles fn Aug 12, 2023
Copy link
Member

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

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

LGTM.
Sorry, I missed the notification

@naorpeled
Copy link
Contributor Author

LGTM.
Sorry, I missed the notification

All good :)
Thanks!

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.

3 participants