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
25 lines
918 B
JavaScript
25 lines
918 B
JavaScript
/*global describe: true, env: true, expect: true, it: true, jasmine: true, xit: true */
|
|
/**
|
|
* @author Rob Taylor [manix84@gmail.com]
|
|
*/
|
|
|
|
var path = require('jsdoc/path');
|
|
|
|
describe("verbose output plugin", function () {
|
|
var parser = new (require('jsdoc/src/parser')).Parser();
|
|
var path = require('jsdoc/path');
|
|
|
|
var docSet;
|
|
var pluginPath = 'plugins/verboseOutput';
|
|
var plugin = require( path.resolve(env.dirname, pluginPath) );
|
|
|
|
//require('jsdoc/plugins').installPlugins(['plugins/verboseOutput'], parser);
|
|
docSet = jasmine.getDocSetFromFile(pluginPath + '.js', parser);
|
|
|
|
xit("should log file names to console", function() {
|
|
// TODO: this doesn't actually test the plugin...
|
|
var fileBegin = docSet.getByLongname("module:plugins/verboseOutput.handlers.fileBegin");
|
|
expect(fileBegin[0].description).toEqual("Logging the file name to the console.");
|
|
});
|
|
});
|