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.
16 lines
654 B
JavaScript
16 lines
654 B
JavaScript
describe('longnames with special characters', () => {
|
|
const docSet = jsdoc.getDocSetFromFile('test/fixtures/specialchars.js');
|
|
const portNumber = docSet.getByLongname('Socket#\'port#number\'')[0];
|
|
const open = docSet.getByLongname('Socket#\'open~a.connection#now\'')[0];
|
|
|
|
it('should use the correct longname for instance members of "this" whose names contain ' +
|
|
'scope punctuation', () => {
|
|
expect(portNumber).toBeDefined();
|
|
});
|
|
|
|
it('should use the correct longname for instance members of the prototype whose names ' +
|
|
'contain scope punctuation', () => {
|
|
expect(open).toBeDefined();
|
|
});
|
|
});
|