ngCourse2
ngCourse2 copied to clipboard
Create hands-on portion for Unit Testing
Not sure how well this could work with our SystemJS setup, or if we'd be better going with a full application setup. What I ended up doing when asked for this was pulling down our angular2-starter and going from there.
Exercise should cover
- [ ] - Creating a service
- [ ] - Setting up mocks/providers
- [ ] - Testing sync behavior
- [ ] - Testing async behavior
- [ ] - Creating a component
- [ ] - Create test scaffolding for component
- [ ] - Have component rely on an injected service
- [ ] - Be able to mock out that service
Connected to #744
- would this be a good case to use Angular CLI?
- Should cover RC5 changes to testing
We might consider adding this to our training examples source code and linking to it from the book. Any thoughts @barretodavid?
I think those examples belong to the angular-training-slides (at some point we should rename that repo as angular-training using tags for different versions) as normal Webpack applications.