Closed jainAdijain closed 7 years ago
Hey,
If you have a general question about unit testing (e.g. how can I write a unit test for some-module), see #191
Thanks,
Stephen
Hi, I am not able to ask questions on stack overflow due to exceeding asking questions limit. Please help if it is possible, it will be very helpful and will add some knowledge.
Thank you
Aditya
Hi Lathonez,
I saw your ClickerForm which helps a lot to understand about testing forms in ionic.I have certain queries which I have not understood, please help me.
I have written a comment in the line which is third last, please explain me the function of
querySelectorAll
on thebutton
and[0]
.Secondly, I wrote some lines of code following yours but, but got an error stating-
Expected spy onSubmit to have been called with [ Object({ name: 'Aditya', email: 'test@aaa.com' }) ]
but it was never called.
form.ts
form.spec.ts
Lastly, Can't we have a use case for input fields and validators and submit button?
Thank you