docs(tutorial): add that the test also creates a controller

This commit is contained in:
Roland 2013-07-24 15:52:39 +02:00 committed by Pete Bacon Darwin
parent b322cbf335
commit f5b8092a1c

View file

@ -134,10 +134,10 @@ describe('PhoneCat controllers', function() {
});
</pre>
The test verifies that we have three records in the phones array and the example demonstrates how
easy it is to create a unit test for code in Angular. Since testing is such a critical part of
software development, we make it easy to create tests in Angular so that developers are encouraged
to write them.
The test instantiates our PhoneListCtrl and verifies that its phones array property contains three
records. This example demonstrates how easy it is to create a unit test for code in Angular. Since
testing is such a critical part of software development, we make it easy to create tests in Angular
so that developers are encouraged to write them.
Angular developers prefer the syntax of Jasmine's Behavior-driven Development (BDD) framework when
writing tests. Although Angular does not require you to use Jasmine, we wrote all of the tests in