From 91b6c5f7ffaa19f967547ae3916641fed9e0f04c Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sun, 7 Nov 2010 13:04:48 -0800 Subject: 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 --- test/ValidatorsTest.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'test/ValidatorsTest.js') 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); -- cgit v1.2.3