From 1e93857cc899e61632f25bc4966d645c91444659 Mon Sep 17 00:00:00 2001 From: Ben Wiklund Date: Mon, 6 Jan 2014 20:03:02 -0800 Subject: [PATCH] test(input): minlength test cases --- test/ng/directive/inputSpec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/ng/directive/inputSpec.js b/test/ng/directive/inputSpec.js index 26abceae1cfe..f4adb53b5af9 100644 --- a/test/ng/directive/inputSpec.js +++ b/test/ng/directive/inputSpec.js @@ -727,6 +727,9 @@ describe('input', function() { it('should invalid shorter than given minlength', function() { compileInput(''); + changeInputValueTo(''); + expect(scope.value).toBeUndefined(); + changeInputValueTo('aa'); expect(scope.value).toBeUndefined(); @@ -746,6 +749,9 @@ describe('input', function() { changeInputValueTo('aaa'); expect(scope.value).toBe('aaa'); + + changeInputValueTo(''); + expect(scope.value).toBe(''); }); });