diff --git a/test/specs/tags/classdesctag.js b/test/specs/tags/classdesctag.js new file mode 100644 index 00000000..6bac5852 --- /dev/null +++ b/test/specs/tags/classdesctag.js @@ -0,0 +1,7 @@ +describe("@classdesc tag", function() { + var doclet = require('jsdoc/doclet'), + doc = new doclet.Doclet('/** Asdf. @class Foo\n@classdesc A description of the class. */', {}); + it('adds a classdesc property to the doclet with the description', function() { + expect(doc.classdesc).toBe('A description of the class.'); + }); +});