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

16 lines
656 B
JavaScript

describe('longnames with special characters', () => {
const docSet = jasmine.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();
});
});