aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec/ngdocSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-04-20 13:44:34 -0700
committerMisko Hevery2011-06-08 15:21:33 -0700
commitf9f95879f08073ce1170a471a925541324a0ff23 (patch)
treecffde6cf16a59806c39ef0298211c9e508e9cf01 /docs/spec/ngdocSpec.js
parent8cad231bd219eddd518de8b8bd040d3f12f08d17 (diff)
downloadangular.js-f9f95879f08073ce1170a471a925541324a0ff23.tar.bz2
Added support for properties in documentation
Diffstat (limited to 'docs/spec/ngdocSpec.js')
-rw-r--r--docs/spec/ngdocSpec.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js
index 2dcfb875..99b3036d 100644
--- a/docs/spec/ngdocSpec.js
+++ b/docs/spec/ngdocSpec.js
@@ -543,6 +543,20 @@ describe('ngdoc', function(){
expect(dom).toContain('var modelValue = angular.formatter.myFormatter.parse(userInputString, a);');
});
});
+
+ describe('property', function(){
+ it('should format', function(){
+ var doc = new Doc({
+ ngdoc:'property',
+ name:'myProp',
+ returns:{type: 'type', description: 'description'}
+ });
+ doc.html_usage_property(dom);
+ expect(dom).toContain('myProp');
+ expect(dom).toContain('type');
+ expect(dom).toContain('description');
+ });
+ });
});
});