#native_company# #native_desc#
#native_cta#

Wrapping Up

In this section on testing in Angular we covered the basics of unit testing with Jasmine and Karma as well as testing by using the Angular Test Bed.

We initially covered the basics of how to test classes with just Jasmine and in itself that gives us the ability to test 50% of our code.

But to go deeper we need to be able to test behaviours that require the Angular framework and that is where the Angular Test Bed comes in.

It lets us test behaviours that require a component interacting with its view and gives us fine grained control on change detection and asynchronous processing.

We covered specific recipes for testing:

  • Using Mocks and Spies.

  • Asynchronous code.

  • Dependency injection.

  • Components.

  • Directives.

  • Model-Driven Forms

  • Http and Jsonp.

  • Routing.


Caught a mistake or want to contribute to the book? Edit this page on GitHub!



Advanced JavaScript

This unique course teaches you advanced JavaScript knowledge through a series of interview questions. Bring your JavaScript to the 2021's today.

Level up your JavaScript now!