@summary: added tests

This commit is contained in:
mathematicalcoffee 2013-02-15 15:59:51 +10:00
parent f84e29363b
commit af05ac417a

View File

@ -0,0 +1,8 @@
describe("@summary tag", function() {
var doclet = require('jsdoc/doclet'),
doc = new doclet.Doclet('/** @summary I do not like green eggs and ham! */', {});
it("sets the doclet's 'summary' property to the tag value", function() {
expect(doc.summary).toBe('I do not like green eggs and ham!');
});
});