mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
@alias tag - added test that doc.alias is populated (further tests already in documentation/alias.js)
This commit is contained in:
parent
e4c90b2fee
commit
896f1bd909
10
test/specs/tags/aliastag.js
Normal file
10
test/specs/tags/aliastag.js
Normal file
@ -0,0 +1,10 @@
|
||||
describe("@alias tag", function() {
|
||||
var doclet = require('jsdoc/doclet'),
|
||||
doc = new doclet.Doclet('/** @name Foo\n@alias Bar */', {});
|
||||
|
||||
it("adds an 'alias' property to the doclet with the tag's value", function() {
|
||||
expect(doc.alias).toBeDefined();
|
||||
expect(doc.alias).toBe('Bar');
|
||||
});
|
||||
// further tests (ensuring alias has the proper effect): documentation/alias.js
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user