aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec
diff options
context:
space:
mode:
authorIgor Minar2010-11-17 12:13:04 -0800
committerIgor Minar2010-11-18 02:34:53 -0800
commit4c69d694d75f01cffbc75be331b5636068a41048 (patch)
treec2dd23dc6813c9ab9baaea50f025908f1be001fc /docs/spec
parentff7c738c21075f834b5f610085d195cfa1eb5110 (diff)
downloadangular.js-4c69d694d75f01cffbc75be331b5636068a41048.tar.bz2
make @returns type non-optional
Diffstat (limited to 'docs/spec')
-rw-r--r--docs/spec/collectSpec.js20
1 files changed, 5 insertions, 15 deletions
diff --git a/docs/spec/collectSpec.js b/docs/spec/collectSpec.js
index 4d398be3..7777e8f4 100644
--- a/docs/spec/collectSpec.js
+++ b/docs/spec/collectSpec.js
@@ -161,24 +161,14 @@ describe('collect', function(){
});
describe('@returns', function() {
- it('should parse @returns', function() {
- expect(function() {TAG.returns(doc, 'returns', '');})
- .not.toThrow();
- });
-
- it('should parse @returns with type', function() {
- TAG.returns(doc, 'returns', '{string}');
- expect(doc.returns.type).toEqual('string');
- });
-
- it('should parse @returns with description', function() {
- TAG.returns(doc, 'returns', 'descrip tion');
- expect(doc.returns.description).toEqual('descrip tion');
+ it('should not parse @returns without type', function() {
+ expect(function() {TAG.returns(doc, 'returns', 'lala');})
+ .toThrow();
});
it('should parse @returns with type and description', function() {
- TAG.returns(doc, 'returns', '{string} description');
- expect(doc.returns).toEqual({type: 'string', description: 'description'});
+ TAG.returns(doc, 'returns', '{string} descrip tion');
+ expect(doc.returns).toEqual({type: 'string', description: 'descrip tion'});
});
});