Angular Training

Task 9. Unit Tests

  • AppComponent: appSettings store mock, constants mock, jasmine.clock(), regexp match
  • ProductsService: HttpClientTestingModule, promises, observers, HTTP GET/POST/DELETE/PUT/PATCH
  • SortProductsPipe: unit tests performing various sorting transformations
  • ProductListComponent: StoreModule.forRoot(), .forFeature(), spyOn() store.dispatch()
  • ProductCardComponent: not yet working, failing on @ngrx/router-store selectors
  • Code coverage generated and added to the repository

Branches

  • Task1. Introduction
  • Task2. Components
  • Task3. Services and DI
  • Task4. Pipes
  • Task5. Routing
  • Task6. HTTP
  • Task7. NgRX
  • Task8. Forms
  • Task9. Unit Tests

Run Development Server

npm run dev

Run Production Build

npm run prod

Powered by Angular CLI

This project was generated with Angular CLI.