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

fix: update CounterInput buttons behavior #2307

Merged
merged 1 commit into from
Oct 21, 2021

Conversation

HellWolf93
Copy link
Collaborator

fix: #2302

Changes proposed in this PR:

@commit-lint
Copy link

commit-lint bot commented Oct 20, 2021

Bug Fixes

  • update CounterInput buttons behavior (b2be2c0)

Contributors

HellWolf93

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@@ -28,6 +28,24 @@ describe('<CounterInput />', () => {
expect(onChangeMockFn).toHaveBeenCalledWith(1);
});

it('should fire onChange `min` as argument when click in plusButton', () => {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

expect(onChangeMockFn).toHaveBeenCalledWith(10);
});

it('should fire onChange `max` as argument when click in minusButton', () => {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Oct 20, 2021

Code Climate has analyzed commit b2be2c0 and detected 5 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 4

View more on Code Climate.

@github-actions
Copy link

Visit the preview URL for this PR (updated for commit b2be2c0):

https://react-rainbow--pr2307-fix-counterinput-ran-w2p526ne.web.app

(expires Wed, 27 Oct 2021 19:27:27 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@LeandroTorresSicilia LeandroTorresSicilia merged commit a2d4916 into master Oct 21, 2021
@LeandroTorresSicilia LeandroTorresSicilia deleted the fix-counterinput-range branch October 21, 2021 13:17
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.

fix: CounterInput max property not always followed
3 participants