jsdoc/test/specs/documentation/exportclass.js
Jeff Williams 5f578e803b migrate from old, vendored Jasmine to jasmine package (#1602)
Plus some miscellaneous cleanup.
2019-01-21 19:38:07 -08:00

15 lines
479 B
JavaScript

/* global jsdoc */
describe('export class', () => {
const docSet = jsdoc.getDocSetFromFile('test/fixtures/exportclass.js');
const bar = docSet.getByLongname('module:foo.Bar')[0];
it('should name exported classes correctly', () => {
expect(bar).toBeDefined();
expect(bar.name).toBe('Bar');
});
it('should merge the class description with the doclet for the class', () => {
expect(bar.classdesc).toBe('Class description');
});
});