From 0911c710fc46f436d784a6005f361c257fd34757 Mon Sep 17 00:00:00 2001 From: mathematicalcoffee Date: Fri, 15 Feb 2013 15:59:08 +1000 Subject: [PATCH] @kind: added test --- test/specs/tags/kindtag.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/specs/tags/kindtag.js diff --git a/test/specs/tags/kindtag.js b/test/specs/tags/kindtag.js new file mode 100644 index 00000000..f47cf4fb --- /dev/null +++ b/test/specs/tags/kindtag.js @@ -0,0 +1,8 @@ +describe("@kind tag", function() { + var doclet = require('jsdoc/doclet'), + doc = new doclet.Doclet('/** @kind function */', {}); + it("sets the doclet's 'kind' property to the tag value", function() { + expect(doc.kind).toBeDefined(); + expect(doc.kind).toBe('function'); + }); +});