mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Most of the existing author tags are grossly out of date at this point. The definitive reference for who has contributed what is available at https://github.com/jsdoc3/jsdoc/graphs/contributors.
21 lines
769 B
JavaScript
21 lines
769 B
JavaScript
'use strict';
|
|
|
|
describe('escapeHtml plugin', function() {
|
|
var env = require('jsdoc/env');
|
|
var path = require('jsdoc/path');
|
|
|
|
var docSet;
|
|
var parser = jasmine.createParser();
|
|
var pluginPath = 'plugins/escapeHtml';
|
|
var pluginPathResolved = path.join(env.dirname, pluginPath);
|
|
|
|
require('jsdoc/plugins').installPlugins([pluginPathResolved], parser);
|
|
docSet = jasmine.getDocSetFromFile(pluginPath + '.js', parser);
|
|
|
|
it("should escape '&', '<' and newlines in doclet descriptions", function() {
|
|
var doclet = docSet.getByLongname('module:plugins/escapeHtml.handlers.newDoclet');
|
|
|
|
expect(doclet[0].description).toEqual('Translate HTML tags in descriptions into safe entities. Replaces <, & and newlines');
|
|
});
|
|
});
|