Commit dbac8b0d authored by Robert Knight's avatar Robert Knight Committed by Nick Stenning

Fix test for clearing response errors when form value changes

In Angular 1.4.x, calling ngModelController.$setViewValue()
does not trigger parsing and validation if the current view
value is the same as the previous view value.
parent 1abbf605
......@@ -80,7 +80,7 @@ describe 'form-input', ->
assert.include($field.prop('className'), 'form-field-error', 'Fail fast check')
controller.$setViewValue('abc')
controller.$setViewValue('def')
$scope.$digest()
assert.notInclude($field.prop('className'), 'form-field-error')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment