This course has been updated! We now recommend you take the Angular 9 Fundamentals course.
Check out a free preview of the full Angular 1.x Essentials course:
The "The Testing Environment" Lesson is part of the full, Angular 1.x Essentials course featured in this preview video. Here's what you'd learn in this lesson:
Testing AngularJS code can be done using Karma. Karma is framework agnostic and easy to set up with Yeoman. When unit testing, developers isolate pieces of logic using matchers and spies. Matchers are expectations made on a function. A spy is the test double that stubs out a function and tracks calls to it.