mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Adress PR's comment
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user