mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
@lends: added low-level tests
This commit is contained in:
parent
0911c710fc
commit
b91796b3a4
16
test/specs/tags/lendstag.js
Normal file
16
test/specs/tags/lendstag.js
Normal file
@ -0,0 +1,16 @@
|
||||
describe("@lends tag", function() {
|
||||
// see also specs/documentation/lends.js for tests on @lends behaviour.
|
||||
var doclet = require('jsdoc/doclet'),
|
||||
doc = new doclet.Doclet('/** @lends */', {}),
|
||||
doc2 = new doclet.Doclet('/** @lends MyClass# */', {});
|
||||
|
||||
it("sets the doclet's 'alias' property to the tag value or <global>", function() {
|
||||
expect(doc.alias).toBe('<global>');
|
||||
expect(doc2.alias).toBe('MyClass#');
|
||||
});
|
||||
|
||||
it("sets the doclet's 'undocumented' property to 'true'", function() {
|
||||
expect(doc.undocumented).toBeTruthy();
|
||||
expect(doc2.undocumented).toBeTruthy();
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user