From b2a8a089b6c31c8ff176c2483f659caae4f71afb Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 11 Feb 2010 09:57:42 -0800 Subject: make validator more leniant for errors which are false instead of null --- test/WidgetsTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/WidgetsTest.js b/test/WidgetsTest.js index 4e3852a5..313d7372 100644 --- a/test/WidgetsTest.js +++ b/test/WidgetsTest.js @@ -18,7 +18,7 @@ WidgetTest.prototype.testValidator = function () { var scope = new Scope({$invalidWidgets:[]}); var cntl = new TextController(view[0], 'a', angularFormatter.noop); angular.validator.testValidator = function(value, expect){ - return value == expect ? null : "Error text"; + return value == expect ? false : "Error text"; }; scope.set('a', ''); -- cgit v1.2.3