mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
commit 6010d34fcb7380281914f348023422f486033c68
Author: Daniel Ellis <coug36@gmail.com>
Date: Wed Dec 31 09:29:00 2014 -0800
Removed support for deprecated functionality
commit dba51a6ba74aa0de5c376434004eec8b05e1207b
Author: Daniel Ellis <coug36@gmail.com>
Date: Fri Dec 26 11:51:08 2014 -0800
Updated underscore plugin to pass tests
commit 3739ea55bd33186cbf507db3f086c9cf1ea9a339
Author: Daniel Ellis <coug36@gmail.com>
Date: Sat Dec 13 21:33:48 2014 -0800
Added unit tests for underscore plugin
commit 1b1bda5bb77ee74c311dfc9c9fe299e1e99f84cc
Merge: adfa364 a122ae6
Author: Daniel Ellis <coug36@gmail.com>
Date: Sat Dec 13 18:39:32 2014 -0800
Merge remote-tracking branch 'upstream/master' into underscore
commit adfa3646ebb7f11db897f7d0ba2490de79f86e2b
Author: Daniel Ellis <coug36@gmail.com>
Date: Fri Aug 2 10:30:40 2013 -0700
Added underscore plugin
36 lines
1.2 KiB
JavaScript
36 lines
1.2 KiB
JavaScript
'use strict';
|
|
|
|
describe('underscore plugin', function () {
|
|
var parser = jasmine.createParser();
|
|
var path = require('jsdoc/path');
|
|
|
|
var docSet;
|
|
|
|
var pluginPath = 'plugins/underscore';
|
|
var fixturePath = 'plugins/test/fixtures/underscore';
|
|
var pluginPathResolved = path.join(env.dirname, pluginPath);
|
|
var plugin = require(pluginPathResolved);
|
|
|
|
require('jsdoc/plugins').installPlugins([pluginPathResolved], parser);
|
|
docSet = jasmine.getDocSetFromFile(fixturePath + '.js', parser);
|
|
|
|
it('should not mark normal, public properties as private', function() {
|
|
// Base line tests
|
|
var normal = docSet.getByLongname('normal');
|
|
expect(normal[0].access).toBeUndefined();
|
|
|
|
var realPrivate = docSet.getByLongname('Klass#privateProp');
|
|
expect(realPrivate[0].access).toEqual('private');
|
|
});
|
|
|
|
it('should hide doclet for symbols beginning with an underscore under normal circumstances', function () {
|
|
var hidden = docSet.getByLongname('_hidden');
|
|
expect(hidden[0].access).toEqual('private');
|
|
});
|
|
|
|
it('picks up "this"', function() {
|
|
var privateUnderscore = docSet.getByLongname('Klass#_privateProp');
|
|
expect(privateUnderscore[0].access).toEqual('private');
|
|
});
|
|
});
|