From f9f95879f08073ce1170a471a925541324a0ff23 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 20 Apr 2011 13:44:34 -0700 Subject: Added support for properties in documentation --- docs/spec/ngdocSpec.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docs/spec/ngdocSpec.js') 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'); + }); + }); }); }); -- cgit v1.2.3