jsdoc/test/specs/documentation/specialchars.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

17 lines
673 B
JavaScript

/* global jsdoc */
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();
});
});