jsdoc/test/specs/documentation/exportclass.js
Jeff Williams aa0b6c1bfa switch to new-ish ECMAScript syntax
With help from Lebab, plus a lot of manual cleanup. (And more cleanup to come, I'm sure.)
2019-01-15 18:39:10 -08:00

14 lines
462 B
JavaScript

describe('export class', () => {
const docSet = jasmine.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');
});
});