-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[11.x] Adding minRatio & maxRatio rules on Dimension validation rules…
…et (#52482) * feat(dim-ratio): add min, max & range methods to Dimensions rule * feat(dim-ratio): add logic for what makes a min or max failing ratio * test(dim-ratio): add test for the new rules to the validator * test(dim-ratio): add more tests for coverage for the new methods on the Dimension rule test * test(dim-ratio): update condition where full ratio not provided in test (edge-case) * chore: styleci fixes * formatting * test: added validation message test * test: fixed naming * chore: styleci fixes --------- Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
d8aabd9
commit ffa4d15
Showing
5 changed files
with
196 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters