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

Tooltip translate tests #3872

Merged
merged 3 commits into from Oct 22, 2023
Merged

Conversation

PavelVanecek
Copy link
Collaborator

Description

I wanted to have unit tests for the translate functions because something broke in it when I was working on the PoC. To make it easier to write those tests I moved the function to separate file and broken down a little bit. But mostly it's just copy-pasting code.

Related Issue

#3823

Motivation and Context

Tests!

How Has This Been Tested?

Jest, TS, Storybook

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a storybook story or extended an existing story to show my changes
  • All new and existing tests passed.

Copy link
Member

@ckifer ckifer left a comment

Choose a reason for hiding this comment

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

🚀 🚀 🚀 🚀 🚀 🚀

});
}

export function getTooltipTranslate({
Copy link
Member

Choose a reason for hiding this comment

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

nice cleanup!!

@ckifer
Copy link
Member

ckifer commented Oct 22, 2023

@PavelVanecek mind fixing the merge conflict? will merge after

@ckifer ckifer merged commit 4d570b1 into recharts:master Oct 22, 2023
5 checks passed
@PavelVanecek PavelVanecek deleted the tooltip-translate-tests branch November 10, 2023 10:19
GMer78 pushed a commit to GMer78/recharts-1 that referenced this pull request Nov 24, 2023
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.

None yet

2 participants