mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
@tutorial: added low-level tests
This commit is contained in:
parent
3fb96af55b
commit
cdc8a1c224
13
test/specs/tags/tutorialtag.js
Normal file
13
test/specs/tags/tutorialtag.js
Normal file
@ -0,0 +1,13 @@
|
||||
describe("@tutorial tag", function() {
|
||||
// these are tests for the block usage, not the inline usage. see util/templateHelper for that.
|
||||
var doclet = require('jsdoc/doclet'),
|
||||
doc = new doclet.Doclet('/** @tutorial tute1\n@tutorial tute2 */', {});
|
||||
|
||||
it("adds the listed tutorials to a 'tutorials' array on the doclet", function () {
|
||||
expect(Array.isArray(doc.tutorials)).toBeTruthy();
|
||||
expect(doc.tutorials.length).toBe(2);
|
||||
expect(doc.tutorials).toContain('tute1');
|
||||
expect(doc.tutorials).toContain('tute2');
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user