@classdesc: added test

This commit is contained in:
mathematicalcoffee 2013-02-15 13:07:42 +10:00
parent 0e8e1664f7
commit d869c99c3d

View File

@ -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.');
});
});