mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Added test cases for @memberof! tag.
This commit is contained in:
parent
39b5e09bb6
commit
39667e6b47
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "JSDoc",
|
||||
"version": "3.0.0alpha",
|
||||
"revision": "1318622611401",
|
||||
"revision": "1318707954271",
|
||||
"description": "An automatic documentation generator for javascript.",
|
||||
"keywords": [ "documentation", "javascript" ],
|
||||
"licenses": [
|
||||
|
||||
@ -140,6 +140,7 @@ testFile('test/t/cases/moduleinner.js');
|
||||
testFile('test/t/cases/memberoftag.js');
|
||||
testFile('test/t/cases/memberoftag2.js');
|
||||
testFile('test/t/cases/memberoftag3.js');
|
||||
testFile('test/t/cases/memberoftagforced.js');
|
||||
testFile('test/t/cases/moduletag.js');
|
||||
testFile('test/t/cases/moduletag2.js');
|
||||
testFile('test/t/cases/paramtag.js');
|
||||
|
||||
13
test/t/cases/memberoftagforced.js
Normal file
13
test/t/cases/memberoftagforced.js
Normal file
@ -0,0 +1,13 @@
|
||||
(function() {
|
||||
var docSet = testhelpers.getDocSetFromFile('test/cases/memberoftagforced.js'),
|
||||
maproutes = docSet.getByLongname('map.routes')[0],
|
||||
datapointy = docSet.getByLongname('Data#point.y')[0];
|
||||
|
||||
test('A nested symbol with a @memberof! tag set to <global>.', function() {
|
||||
assert.equal(maproutes.name, 'map.routes', 'Has a shortname that includes the nested names.');
|
||||
});
|
||||
|
||||
test('A nested symbol with a @memberof! tag set to another symbol.', function() {
|
||||
assert.equal(datapointy.name, 'point.y', 'Has a shortname that includes the nested names.');
|
||||
});
|
||||
})();
|
||||
Loading…
x
Reference in New Issue
Block a user