mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
JSDoc-specific test functions are now properties of a `jsdoc` global, not a `jasmine` global. Also updates license files to reflect the fact that we no longer vendor anything.
21 lines
894 B
JavaScript
21 lines
894 B
JavaScript
describe('variations by name', () => {
|
|
const docSet = jsdoc.getDocSetFromFile('test/fixtures/variations.js');
|
|
const fadein1 = docSet.getByLongname('anim.fadein(1)')[0];
|
|
const fadein2 = docSet.getByLongname('anim.fadein(2)')[0];
|
|
|
|
it('When a symbol has a name with a variation, the doclet has a variation property.', () => {
|
|
expect(fadein1.variation).toBe('1');
|
|
expect(fadein2.variation).toBe('2');
|
|
});
|
|
|
|
it('When a symbol has a name with a variation in the name, the doclet name has no variation in it.', () => {
|
|
expect(fadein1.name).toBe('fadein');
|
|
expect(fadein2.name).toBe('fadein');
|
|
});
|
|
|
|
it('When a symbol has a name with a variation in the name, the doclet longname has the variation in it.', () => {
|
|
expect(fadein1.longname).toBe('anim.fadein(1)');
|
|
expect(fadein2.longname).toBe('anim.fadein(2)');
|
|
});
|
|
});
|