aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec
diff options
context:
space:
mode:
Diffstat (limited to 'docs/spec')
-rw-r--r--docs/spec/collectSpec.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/spec/collectSpec.js b/docs/spec/collectSpec.js
index 2261b7a0..8002e0d6 100644
--- a/docs/spec/collectSpec.js
+++ b/docs/spec/collectSpec.js
@@ -230,6 +230,18 @@ describe('collect', function(){
})
});
+ describe('@workInProgress', function() {
+ it('should parse @workInProgress without a description and default to true', function() {
+ TAG.workInProgress(doc, 'workInProgress', '');
+ expect(doc.workInProgress).toEqual({description: ''});
+ });
+
+ it('should parse @workInProgress with a description', function() {
+ TAG.workInProgress(doc, 'workInProgress', 'my description');
+ expect(doc.workInProgress).toEqual({description: '<p>my description</p>'});
+ });
+ });
+
});
describe('trim', function(){