|
|
@@ -1843,6 +1843,12 @@ describe('between', function() {
|
|
|
$('#betweenForm').bootstrapValidator('destroy').remove();
|
|
|
});
|
|
|
|
|
|
+ it('not a number', function() {
|
|
|
+ this.$age.val('50abc');
|
|
|
+ this.bv.validate();
|
|
|
+ expect(this.bv.isValid()).toEqual(false);
|
|
|
+ });
|
|
|
+
|
|
|
it('compare to value', function() {
|
|
|
this.$age.val(10);
|
|
|
this.bv.validate();
|
|
|
@@ -2410,6 +2416,12 @@ describe('greaterThan', function() {
|
|
|
$('#greaterThanForm').bootstrapValidator('destroy').remove();
|
|
|
});
|
|
|
|
|
|
+ it('not a number', function() {
|
|
|
+ this.$age.val('20abc');
|
|
|
+ this.bv.validate();
|
|
|
+ expect(this.bv.isValid()).toEqual(false);
|
|
|
+ });
|
|
|
+
|
|
|
it('compare to value', function() {
|
|
|
this.$age.val(10);
|
|
|
this.bv.validate();
|
|
|
@@ -3862,6 +3874,12 @@ describe('lessThan', function() {
|
|
|
$('#lessThanForm').bootstrapValidator('destroy').remove();
|
|
|
});
|
|
|
|
|
|
+ it('not a number', function() {
|
|
|
+ this.$age.val('20abc');
|
|
|
+ this.bv.validate();
|
|
|
+ expect(this.bv.isValid()).toEqual(false);
|
|
|
+ });
|
|
|
+
|
|
|
it('compare to value', function() {
|
|
|
this.$age.val(120);
|
|
|
this.bv.validate();
|