From d519953a4b219035587e3fcb2e9cc52e02b408ca Mon Sep 17 00:00:00 2001 From: Gregory Pike Date: Fri, 31 Aug 2012 19:20:01 -0400 Subject: feat(ngModel): support ngTrim attribute on input --- test/ng/directive/inputSpec.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/ng/directive') diff --git a/test/ng/directive/inputSpec.js b/test/ng/directive/inputSpec.js index 3b511011..01669b18 100644 --- a/test/ng/directive/inputSpec.js +++ b/test/ng/directive/inputSpec.js @@ -382,6 +382,14 @@ describe('input', function() { }); + it('should update the model and not trim the value', function() { + compileInput(''); + + changeInputValueTo(' a '); + expect(scope.name).toEqual(' a '); + }); + + it('should allow complex reference binding', function() { compileInput(''); -- cgit v1.2.3