13 lines
610 B
JavaScript
13 lines
610 B
JavaScript
describe("@constructor tag", function() {
|
|
var docSet = jasmine.getDocSetFromFile('test/fixtures/constructortag.js'),
|
|
feed = docSet.getByLongname('Feed')[0];
|
|
|
|
it('When a symbol has an @constructor tag, it is documented as a class.', function() {
|
|
expect(feed.kind).toBe('class');
|
|
});
|
|
|
|
it('When a symbol has an @constructor tag and a @class tag, the value of the @class tag becomes the classdesc property.', function() {
|
|
expect(feed.classdesc).toBe('Describe your class here.');
|
|
expect(feed.description).toBe('Describe your constructor function here.');
|
|
});
|
|
}); |