mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
22 lines
741 B
JavaScript
22 lines
741 B
JavaScript
'use strict';
|
|
|
|
describe('class properties', function() {
|
|
var docSet = jasmine.getDocSetFromFile('test/fixtures/classproperties.js');
|
|
var b = docSet.getByLongname('A#b')[0];
|
|
var c = docSet.getByLongname('A#c')[0];
|
|
|
|
it('should assign the correct name, memberof, and scope to class properties', function() {
|
|
expect(b.name).toBe('b');
|
|
expect(b.memberof).toBe('A');
|
|
expect(b.scope).toBe('instance');
|
|
});
|
|
|
|
it('should assign the correct name, memberof, scope, and access type to class private ' +
|
|
'properties', function() {
|
|
expect(c.name).toBe('c');
|
|
expect(c.memberof).toBe('A');
|
|
expect(c.scope).toBe('instance');
|
|
expect(c.access).toBe('private');
|
|
});
|
|
});
|