@alias tag - added test that doc.alias is populated (further tests already in documentation/alias.js)

This commit is contained in:
mathematicalcoffee 2013-02-15 12:53:05 +10:00
parent e4c90b2fee
commit 896f1bd909

View 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
});