-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misleading component testing documentation #161
Comments
@DaSchTour, thanks for the feedback. I hope to overhaul the testing documentation when working on #93. Can you link to a docs page so I can address this specific confusion? |
Most confusing is the last part of https://hotell.gitbooks.io/ng-metadata/content/docs/api/testing/ After my initial comment I've also take a look on https://hotell.gitbooks.io/ng-metadata/content/docs/api/testing/function.html which creates even more confusion, as it doesn't use Jasmine for test description. There are also some errors with missing ! in the test and the confusing usage of data and name. |
the Api testing docs seems to be not updated but the function works as expected. you can try that by yourself https://github.com/ngParty/Angular1-scaffold/blob/master/src/app/app.component.spec.ts |
There are several issus with the component testing documentation.
From the given example it's hard to create a working test. All I tried always leads to
TypeError: undefined is not a constructor (evaluating 'render(FirstComponent)')
The text was updated successfully, but these errors were encountered: