ngCourse2 icon indicating copy to clipboard operation
ngCourse2 copied to clipboard

Create hands-on portion for Unit Testing

Open e-schultz opened this issue 8 years ago • 3 comments

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

e-schultz avatar Jun 27 '16 18:06 e-schultz

  • would this be a good case to use Angular CLI?
  • Should cover RC5 changes to testing

e-schultz avatar Aug 15 '16 17:08 e-schultz

We might consider adding this to our training examples source code and linking to it from the book. Any thoughts @barretodavid?

bennett000 avatar Oct 26 '16 18:10 bennett000

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.

barretodavid avatar Jan 09 '17 22:01 barretodavid