mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
@desc: added tests
This commit is contained in:
parent
4019e537f0
commit
dc5e6f0933
15
test/specs/tags/descriptiontag.js
Normal file
15
test/specs/tags/descriptiontag.js
Normal file
@ -0,0 +1,15 @@
|
||||
describe("@description tag", function() {
|
||||
var doclet = require('jsdoc/doclet'),
|
||||
doc = new doclet.Doclet('/** Blah Blah Blah\n @desc halb halb halb */', {}),
|
||||
doc2 = new doclet.Doclet('/** @description lkjasdf */', {});
|
||||
|
||||
it("sets the doclet's 'description' property to the description", function() {
|
||||
expect(doc2.description).toBeDefined();
|
||||
expect(doc2.description).toBe('lkjasdf');
|
||||
});
|
||||
|
||||
it("overrides the default description", function() {
|
||||
expect(doc.description).toBeDefined();
|
||||
expect(doc.description).toBe('halb halb halb');
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user