From 22c1db17444e09bcf13b0f24f4f805a65d8a3be0 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 13 Feb 2012 21:59:10 -0800 Subject: fix(ngdoc): extract keywords from properties/methods. --- docs/spec/ngdocSpec.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/spec') diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js index c6f17628..8082e4b1 100644 --- a/docs/spec/ngdocSpec.js +++ b/docs/spec/ngdocSpec.js @@ -23,6 +23,13 @@ describe('ngdoc', function() { expect(new Doc('The `ng:class-odd` and').keywords()).toEqual('and ng:class-odd the'); }); + it('should get property and methods', function() { + var doc = new Doc('Document'); + doc.properties.push(new Doc('Proprety')); + doc.properties.push(new Doc('Method')); + expect(doc.keywords()).toEqual('document method proprety'); + }); + it('should have shortName', function() { var d1 = new Doc('@name a.b.c').parse(); var d2 = new Doc('@name a.b.ng:c').parse(); -- cgit v1.2.3