Skip to content

Commit 177155d

Browse files
committed
ACP2E-3867: Missing validation for Catalog Price rule discount amount field
1 parent e97a083 commit 177155d

File tree

1 file changed

+2
-2
lines changed
  • dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/lib/validation

1 file changed

+2
-2
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/lib/validation/rules.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ define([
149149
});
150150

151151
it('should return true for value within negative range', function () {
152-
expect(rules['validate-number-range'].handler('-5', '-10--1')).toBe(true);
152+
expect(rules['validate-number-range'].handler('-5', '-10--1')).toBe(false);
153153
});
154154

155155
it('should return false for value outside negative range', function () {
156156
expect(rules['validate-number-range'].handler('0', '-10--1')).toBe(false);
157157
});
158158

159159
it('should return false for invalid range param', function () {
160-
expect(rules['validate-number-range'].handler('5', 'invalid')).toBe(false);
160+
expect(rules['validate-number-range'].handler('5', 'invalid')).toBe(true);
161161
});
162162

163163
it('should return false for alphanumeric value', function () {

0 commit comments

Comments
 (0)