This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Improve unit testing docs in guide #8220
Closed
Description
I think the unit testing part of the guide can be improved in major ways. From a quick glance:
- It mostly talks about why unit testing is important, and how DI, separating logic from DOM etc. make code testable. This should be separated from the actual examples.
- There's almost no reference to the default angular way of testing, i.e. there's no mention of angular-mocks, no mention of Karma (other than for the preprocessor). Jasmine is introduced in the middle of a paragraph
- Other minor things:
- Examples use old controller syntax (controller on the window)
- Not mentioned how angular makes async tests sync (I got there from test($http): ignore date-toJSON test if running in IE8 #8219)