diff options
| author | Vojta Jina | 2011-11-11 17:15:22 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-11-14 20:31:19 -0800 |
| commit | acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c (patch) | |
| tree | 2483609ada03b9e6ff477596f0402dc24fdd7518 /docs/content/guide/dev_guide.unit-testing.ngdoc | |
| parent | 035c7510763a9742294d51ba55aea0b6dd08ea58 (diff) | |
| download | angular.js-acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c.tar.bz2 | |
style(docs): make jslint happy - fix some warnings
Diffstat (limited to 'docs/content/guide/dev_guide.unit-testing.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.unit-testing.ngdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/content/guide/dev_guide.unit-testing.ngdoc b/docs/content/guide/dev_guide.unit-testing.ngdoc index 96758866..8b4d4687 100644 --- a/docs/content/guide/dev_guide.unit-testing.ngdoc +++ b/docs/content/guide/dev_guide.unit-testing.ngdoc @@ -247,16 +247,16 @@ that such a test tells a story, rather then asserting random bits which don't se ## Filters -{@link api/angular.module.NG.$filter Filters} are functions which transform the data into user readable +{@link api/angular.module.ng.$filter Filters} are functions which transform the data into user readable format. They are important because they remove the formatting responsibility from the application logic, further simplifying the application logic. <pre> -angular.module.NG.$filter('length', function(text){ +angular.module.ng.$filter('length', function(text){ return (''+(text||'')).length; }); -var length = angular.module.NG.$filter('length'); +var length = angular.module.ng.$filter('length'); expect(length(null)).toEqual(0); expect(length('abc')).toEqual(3); </pre> |
