From 5a34464198f1ca108ddd085181a832d3aa181c31 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Mon, 20 May 2013 17:02:03 -0400 Subject: fix(ngdocs): fix gen_docs.sh --- docs/spec/domSpec.js | 18 ++++++++++++++++++ docs/spec/ngdocSpec.js | 19 ++++++++++--------- 2 files changed, 28 insertions(+), 9 deletions(-) (limited to 'docs/spec') diff --git a/docs/spec/domSpec.js b/docs/spec/domSpec.js index 5175b91a..7bc6a7f4 100644 --- a/docs/spec/domSpec.js +++ b/docs/spec/domSpec.js @@ -28,6 +28,24 @@ describe('dom', function() { expect(dom.toString()).toContain('
x\n# One\n
b')). - toMatch('\n\n
\n\nOne
\n\nfoo \n' + 'abc\n\n' + - 'bah
\n\n' + + 'bah
\n\n' + 'foo \n' + '
cba'); @@ -499,7 +499,7 @@ describe('ngdoc', function() { var doc = new Doc('@ngdoc overview\n@name angular\n@description\n#heading\ntext'); doc.parse(); expect(doc.html()).toContain('text'); - expect(doc.html()).toContain('heading
'); + expect(doc.html()).toContain('heading
'); expect(doc.html()).not.toContain('Description'); }); }); @@ -511,7 +511,7 @@ describe('ngdoc', function() { ngdoc:'function', name:'some.name', param: [ - {name:'a', optional: true}, + {name:'a', type: 'string', optional: true}, {name:'b', type: 'someType', optional: true, 'default': '"xxx"'}, {name:'c', type: 'string', description: 'param desc'} ], @@ -520,7 +520,7 @@ describe('ngdoc', function() { doc.html_usage_function(dom); expect(dom).toContain('name([a][, b], c)'); //TODO(i) the comma position here is lame expect(dom).toContain('param desc'); - expect(dom).toContain('(optional="xxx")'); + expect(dom).toContain('(optional)'); expect(dom).toContain('return desc'); }); }); @@ -531,8 +531,8 @@ describe('ngdoc', function() { ngdoc:'formatter', shortName:'myFilter', param: [ - {name:'a'}, - {name:'b'} + {name:'a', type:'string'}, + {name:'b', type:'string'} ] }); doc.html_usage_filter(dom); @@ -546,6 +546,7 @@ describe('ngdoc', function() { var doc = new Doc({ ngdoc:'property', name:'myProp', + type:'string', returns:{type: 'type', description: 'description'} }); doc.html_usage_property(dom); -- cgit v1.2.3