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

Create a new widget for decimal type #9335

Merged
merged 7 commits into from
Feb 15, 2024

Conversation

BSekula
Copy link
Contributor

@BSekula BSekula commented Feb 14, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)

What is the new behaviour?

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@BSekula BSekula force-pushed the dev-bsekula-AAE-19481-decimal-widget branch 2 times, most recently from bedd4af to 870b7ee Compare February 14, 2024 15:32
expect(decimalValidator.validate(field)).toBeTrue();
});

it('should return true when value has smaller precission', () => {
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('should return true when value has smaller precission', () => {
it('should return true when value is of lower precision', () => {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

expect(decimalValidator.validate(field)).toBeFalse();
});

it('should return true, when value is negative number and has correct precission', () => {
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('should return true, when value is negative number and has correct precission', () => {
it('should return false, when value is a negative number and of correct precission', () => {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy/paste issue .. fixed 👍

@BSekula BSekula requested a review from DudaRobert February 15, 2024 12:39
@BSekula BSekula force-pushed the dev-bsekula-AAE-19481-decimal-widget branch from 6ebf349 to 9d17327 Compare February 15, 2024 12:59
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
11.9% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@BSekula BSekula merged commit 16005ef into develop Feb 15, 2024
32 of 33 checks passed
@BSekula BSekula deleted the dev-bsekula-AAE-19481-decimal-widget branch February 15, 2024 13:23
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.

2 participants