Testing your Angular 2 Application: Part 1 of 2

Testing your Angular 2 Application: Part 1 of 2  #AngularJS

  • When writing unit tests for components we don’t actually bootstrap the application, instead, we initialize the component and inject any dependencies manually.
  • You should already have a basic understanding of how unit tests are written and some experience writing Angular 1.x tests .
  • Using the QuoteComponent fixture, we can retrieve access to the underlying component instance through the debugElement.componentInstance property path.

Read the full article, click here.


@Izenda: “Testing your Angular 2 Application: Part 1 of 2 #AngularJS”



Testing your Angular 2 Application: Part 1 of 2

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.