aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec
diff options
context:
space:
mode:
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'});
});
});