Skip to content

Commit

Permalink
Update IP validator test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkni committed Sep 7, 2014
1 parent 2561a28 commit 638d5e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4038,10 +4038,10 @@ describe('ip', function() {
$([
'<form class="form-horizontal" id="ipForm">',
'<div class="form-group">',
'<input type="text" name="ipv4" data-bv-ip data-bv-ipv6="false" />',
'<input type="text" name="ipv4" data-bv-ip data-bv-ip-ipv6="false" />',
'</div>',
'<div class="form-group">',
'<input type="text" name="ipv6" data-bv-ip data-bv-ipv4="false" />',
'<input type="text" name="ipv6" data-bv-ip data-bv-ip-ipv4="false" />',
'</div>',
'<div class="form-group">',
'<input type="text" name="both" data-bv-ip />',
Expand Down Expand Up @@ -4093,7 +4093,7 @@ describe('ip', function() {
expect(this.bv.isValid()).toEqual(false);

this.bv.resetForm();
this.$ipv4.val('192.168. 224.0 1'); // internal space
this.$ipv4.val('192.168. 224.0'); // internal space
this.bv.validate();
expect(this.bv.isValid()).toEqual(false);

Expand Down
6 changes: 3 additions & 3 deletions test/spec/validator/ip.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ describe('ip', function() {
$([
'<form class="form-horizontal" id="ipForm">',
'<div class="form-group">',
'<input type="text" name="ipv4" data-bv-ip data-bv-ipv6="false" />',
'<input type="text" name="ipv4" data-bv-ip data-bv-ip-ipv6="false" />',
'</div>',
'<div class="form-group">',
'<input type="text" name="ipv6" data-bv-ip data-bv-ipv4="false" />',
'<input type="text" name="ipv6" data-bv-ip data-bv-ip-ipv4="false" />',
'</div>',
'<div class="form-group">',
'<input type="text" name="both" data-bv-ip />',
Expand Down Expand Up @@ -58,7 +58,7 @@ describe('ip', function() {
expect(this.bv.isValid()).toEqual(false);

this.bv.resetForm();
this.$ipv4.val('192.168. 224.0 1'); // internal space
this.$ipv4.val('192.168. 224.0'); // internal space
this.bv.validate();
expect(this.bv.isValid()).toEqual(false);

Expand Down

0 comments on commit 638d5e8

Please sign in to comment.