I have a field with a maxlength of 6, but somehow the following way of entering data results in 7 chars being allowed:
<input type="text" name="myName" maxlength="6" ng-model="myModel">
this is the test bit:
input('myModel').enter('1111117');
expect(input('myModel').val()).toBe(111111);
and this is the result
expected 111111 but was "1111117"
I suppose this has to do with the model being used instead of the real field, but how would I test this then in Karma?