From 896f1bd90913a29b45d7fbd44dd26a5ded802d29 Mon Sep 17 00:00:00 2001 From: mathematicalcoffee Date: Fri, 15 Feb 2013 12:53:05 +1000 Subject: [PATCH] @alias tag - added test that doc.alias is populated (further tests already in documentation/alias.js) --- test/specs/tags/aliastag.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/specs/tags/aliastag.js diff --git a/test/specs/tags/aliastag.js b/test/specs/tags/aliastag.js new file mode 100644 index 00000000..7fea8ac1 --- /dev/null +++ b/test/specs/tags/aliastag.js @@ -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 +});