Angular2+ - Typeerror: Form.reset Is Not A Function
This is a question carried over from Finding where and why [object ErrorEvent] is being thrown as a result of troubleshooting a different problem. I am mocking an NgForm to pass in
Solution 1:
It appears that Karma was sending the error from the wrong test, or at least misdirecting me from the actual cause of the error.
After I placed resetForm: () => null
into the correct mock-form then all is well.
Post a Comment for "Angular2+ - Typeerror: Form.reset Is Not A Function"