From d869c99c3daf9ed52aabe2f241b2fd12634ef8d9 Mon Sep 17 00:00:00 2001 From: mathematicalcoffee Date: Fri, 15 Feb 2013 13:07:42 +1000 Subject: [PATCH] @classdesc: added test --- test/specs/tags/classdesctag.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/specs/tags/classdesctag.js 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.'); + }); +});