mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
- new Rhino .jar to help find module paths (https://github.com/hegemonic/rhino/commit/31b70105) - make __dirname and process.cwd() provide the current module path; use only env.dirname for JSDoc's home dir; fix callers - get rid of jsdoc/util/include (and update test framework accordingly) - avoid running Rhino/Node.js tests on the wrong runtime - remove support for global 'publish' function, which relied upon jsdoc/util/include - update jsdoc/util/dumper for consistency with Node.js' JSON.stringify() - fix jsdoc/util/runtime to detect Node.js correctly - add Node.js versions of jsdoc/fs and jsdoc/path - other minor cleanup
30 lines
1.0 KiB
JavaScript
30 lines
1.0 KiB
JavaScript
/*global describe: true, env: true, expect: true, it: true, jasmine: true */
|
|
|
|
var path = require('jsdoc/path');
|
|
|
|
describe("markdown plugin", function() {
|
|
//TODO
|
|
});
|
|
|
|
describe("markdown see tag support", function() {
|
|
var pluginPath = 'plugins/markdown';
|
|
var pluginPathResolved = path.join(env.dirname, pluginPath);
|
|
var plugin = require(pluginPathResolved);
|
|
|
|
var docSet = jasmine.getDocSetFromFile('plugins/test/fixtures/seetag-markdown.js');
|
|
var foo = docSet.getByLongname('foo')[0];
|
|
var bar = docSet.getByLongname('bar')[0];
|
|
|
|
it ('should parse @see tags containing links', function() {
|
|
plugin.handlers.newDoclet({doclet:foo});
|
|
expect(typeof foo).toEqual('object');
|
|
expect(foo.see[0]).toEqual('<p><a href="http://nowhere.com">Nowhere</a></p>');
|
|
});
|
|
|
|
it ('should not parse @see tags that do not contain links', function() {
|
|
plugin.handlers.newDoclet({doclet:bar});
|
|
expect(typeof bar).toEqual('object');
|
|
expect(bar.see[0]).toEqual('AnObject#myProperty');
|
|
});
|
|
});
|