-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Conversation
Bug Fixes
ContributorsCommit-Lint commandsYou can trigger Commit-Lint actions by commenting on this PR:
|
@@ -28,6 +28,24 @@ describe('<CounterInput />', () => { | |||
expect(onChangeMockFn).toHaveBeenCalledWith(1); | |||
}); | |||
|
|||
it('should fire onChange `min` as argument when click in plusButton', () => { |
There was a problem hiding this comment.
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', () => { |
There was a problem hiding this comment.
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.
Code Climate has analyzed commit b2be2c0 and detected 5 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
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 🌎 |
fix: #2302
Changes proposed in this PR:
Updated CounterInput
+
and-
to math native input behaviourI have followed (at least) the PR section of the contributing guide.