File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -543,6 +543,20 @@ describe('ngdoc', function(){
543543 expect ( dom ) . toContain ( 'var modelValue = angular.formatter.myFormatter.parse(userInputString, a);' ) ;
544544 } ) ;
545545 } ) ;
546+
547+ describe ( 'property' , function ( ) {
548+ it ( 'should format' , function ( ) {
549+ var doc = new Doc ( {
550+ ngdoc :'property' ,
551+ name :'myProp' ,
552+ returns :{ type : 'type' , description : 'description' }
553+ } ) ;
554+ doc . html_usage_property ( dom ) ;
555+ expect ( dom ) . toContain ( 'myProp' ) ;
556+ expect ( dom ) . toContain ( 'type' ) ;
557+ expect ( dom ) . toContain ( 'description' ) ;
558+ } ) ;
559+ } ) ;
546560 } ) ;
547561
548562} ) ;
Original file line number Diff line number Diff line change @@ -321,6 +321,17 @@ Doc.prototype = {
321321 } ) ;
322322 } ,
323323
324+ html_usage_property : function ( dom ) {
325+ var self = this ;
326+ dom . h ( 'Usage' , function ( ) {
327+ dom . code ( function ( ) {
328+ dom . text ( self . name ) ;
329+ } ) ;
330+
331+ self . html_usage_returns ( dom ) ;
332+ } ) ;
333+ } ,
334+
324335 html_usage_directive : function ( dom ) {
325336 var self = this ;
326337 dom . h ( 'Usage' , function ( ) {
You can’t perform that action at this time.
0 commit comments