Adress PR's comment

This commit is contained in:
Nicolas Le Goff
2013-06-11 18:24:17 +02:00
parent 666ecc5152
commit d3716088e1
5 changed files with 11 additions and 15 deletions

View File

@@ -397,13 +397,6 @@ define([
this.validator.getErrors().length.should.equal(1);
this.validator.validate([{
name :"valid_ip",
value: "coucou"
}]);
this.validator.getErrors().length.should.equal(1);
this.validator.validate([{
name :"valid_ip",
value: "1234.12.12"
@@ -426,6 +419,13 @@ define([
}]);
this.validator.getErrors().length.should.equal(0);
this.validator.validate([{
name :"valid_ip",
value: "my.domain"
}]);
this.validator.getErrors().length.should.equal(0);
});
it("should detect an error if field value 'valid_url' is not a valid http url", function() {