diff options
| author | Misko Hevery | 2010-11-07 13:04:48 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-11-07 13:06:55 -0800 |
| commit | 91b6c5f7ffaa19f967547ae3916641fed9e0f04c (patch) | |
| tree | 24be352f7e30519848e1364db5ea2dd6ff87e983 /test/ValidatorsTest.js | |
| parent | 5be325a0c1a660268d29541bc668d9cb7d641fcb (diff) | |
| download | angular.js-91b6c5f7ffaa19f967547ae3916641fed9e0f04c.tar.bz2 | |
Added documentation for validators.
BACKWARD INCOMPATIBLE: removed ssn validators, since it is unlikely that most people will need it and if they do, they can added it thorough RegExp
Diffstat (limited to 'test/ValidatorsTest.js')
| -rw-r--r-- | test/ValidatorsTest.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/ValidatorsTest.js b/test/ValidatorsTest.js index 463e05de..cc77b6da 100644 --- a/test/ValidatorsTest.js +++ b/test/ValidatorsTest.js @@ -69,12 +69,6 @@ ValidatorTest.prototype.testPhone = function() { assertEquals(null, angular.validator.phone("+421 0905 933 297")); }; -ValidatorTest.prototype.testSSN = function() { - var error = "SSN needs to be in 999-99-9999 format."; - assertEquals(angular.validator.ssn("ab"), error); - assertEquals(angular.validator.ssn("123-45-6789"), null); -}; - ValidatorTest.prototype.testURL = function() { var error = "URL needs to be in http://server[:port]/path format."; assertEquals(angular.validator.url("ab"), error); |
