|
@@ -2827,6 +2827,17 @@ describe('greaterThan', function() {
|
|
|
expect(this.bv.isValid()).toBeTruthy();
|
|
expect(this.bv.isValid()).toBeTruthy();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ it('value with coma separator', function() {
|
|
|
|
|
+ this.$age.val('10,4');
|
|
|
|
|
+ this.bv.validate();
|
|
|
|
|
+ expect(this.bv.isValid()).toEqual(false);
|
|
|
|
|
+
|
|
|
|
|
+ this.bv.resetForm();
|
|
|
|
|
+ this.$age.val('18,678');
|
|
|
|
|
+ this.bv.validate();
|
|
|
|
|
+ expect(this.bv.isValid()).toBeTruthy();
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
it('compare to other field', function() {
|
|
it('compare to other field', function() {
|
|
|
this.$age.attr('data-bv-greaterthan-value', 'minAge');
|
|
this.$age.attr('data-bv-greaterthan-value', 'minAge');
|
|
|
this.bv.destroy();
|
|
this.bv.destroy();
|
|
@@ -4475,6 +4486,17 @@ describe('lessThan', function() {
|
|
|
expect(this.bv.isValid()).toEqual(false);
|
|
expect(this.bv.isValid()).toEqual(false);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ it('value with coma separator', function() {
|
|
|
|
|
+ this.$age.val('120,2234');
|
|
|
|
|
+ this.bv.validate();
|
|
|
|
|
+ expect(this.bv.isValid()).toEqual(false);
|
|
|
|
|
+
|
|
|
|
|
+ this.bv.resetForm();
|
|
|
|
|
+ this.$age.val('30,2234');
|
|
|
|
|
+ this.bv.validate();
|
|
|
|
|
+ expect(this.bv.isValid()).toBeTruthy();
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
it('compare to value', function() {
|
|
it('compare to value', function() {
|
|
|
this.$age.val(120);
|
|
this.$age.val(120);
|
|
|
this.bv.validate();
|
|
this.bv.validate();
|