aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Johnston2014-03-15 10:55:02 -0700
committerVojta Jina2014-03-21 11:42:17 -0700
commitc7e60153a51ea424397fe06102c06e7c3849da56 (patch)
tree1653a0e613ef4f72b9a072633c15487ef031c250
parentc0416866f597e489c6c332f3f53dd15d515baf31 (diff)
downloadangular.js-c7e60153a51ea424397fe06102c06e7c3849da56.tar.bz2
docs(tutorial/step_02): add experiment to update controller test
Add an experiment to update the controller unit test after modifying it with the new model property.
-rw-r--r--docs/content/tutorial/step_02.ngdoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/content/tutorial/step_02.ngdoc b/docs/content/tutorial/step_02.ngdoc
index 83512e9f..56ec2dd2 100644
--- a/docs/content/tutorial/step_02.ngdoc
+++ b/docs/content/tutorial/step_02.ngdoc
@@ -226,6 +226,10 @@ To run the test, do the following:
Refresh your browser and verify that it says "Hello, World!".
+* Update the unit test for the controler in ./tests/unit/controlersSpec.js to refelct the previous change. For example by adding:
+
+ expect(scope.name).toBe('World');
+
* Create a repeater that constructs a simple table:
<table>