jsdoc/test/t/cases/starbangstar.js
2011-09-24 08:26:00 +01:00

14 lines
559 B
JavaScript

(function() {
var docSet = testhelpers.getDocSetFromFile('test/cases/starbangstar.js'),
mod = docSet.getByLongname('module:myscript/core')[0],
x = docSet.getByLongname('module:myscript/core.x')[0];
test('When doclet starts wuth /*!* it, it is treated as a JSDoc comment.', function() {
assert.equal(mod.description, 'Script that does something awesome');
});
test('When doclet starts wuth /*!** it, it is not treated as a JSDoc comment.', function() {
assert.equal(typeof x, 'undefined');
});
})();