aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/tutorial
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-09-05 13:58:21 +0100
committerPete Bacon Darwin2013-09-05 13:58:21 +0100
commitc66ec5413cc3335aa31123595fab6e9a34cf20b7 (patch)
tree95afd14bf085db7a2ef6dd9db6733b60593bf29f /docs/content/tutorial
parentae70ec7946a75fc1760158f954b27fb59342d568 (diff)
downloadangular.js-c66ec5413cc3335aa31123595fab6e9a34cf20b7.tar.bz2
docs(tutorial): clarify use of inject() in step 9
Closes #3718
Diffstat (limited to 'docs/content/tutorial')
-rw-r--r--docs/content/tutorial/step_09.ngdoc9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/content/tutorial/step_09.ngdoc b/docs/content/tutorial/step_09.ngdoc
index 245a51d5..a6c4585c 100644
--- a/docs/content/tutorial/step_09.ngdoc
+++ b/docs/content/tutorial/step_09.ngdoc
@@ -94,7 +94,6 @@ describe('filter', function() {
beforeEach(module('phonecatFilters'));
-
describe('checkmark', function() {
it('should convert boolean values to unicode checkmark or cross',
@@ -106,8 +105,12 @@ describe('filter', function() {
});
</pre>
-Note that you need to configure our test injector with the `phonecatFilters` module before any of
-our filter tests execute.
+We must call `beforeEach(module('phonecatFilters'))` before any of
+our filter tests execute. This call loads our `phonecatFilters` module into the injector
+for this test run.
+
+Note that we call the helper function, `inject(function(checkmarkFilter) { ... })`, to get
+access to the filter that we want to test. See {@link api/angular.mock.inject angular.mock.inject()}.
You should now see the following output in the Karma tab: