Skip to content

Commit 21aa003

Browse files
committed
test(validators): remove bad practice from test
1 parent 5fc9933 commit 21aa003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ng/directive/validatorsSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ describe('validators', function() {
351351

352352

353353
it('should accept values of any length when maxlength is non-numeric', function() {
354-
var inputElm = helper.compileInput('<input type="text" ng-model="value" ng-maxlength="{{maxlength}}" />');
354+
var inputElm = helper.compileInput('<input type="text" ng-model="value" ng-maxlength="maxlength" />');
355355
helper.changeInputValueTo('aaaaaaaaaa');
356356

357357
$rootScope.$apply('maxlength = "5"');

0 commit comments

Comments
 (0)