forked from mirrors/easyappointments
ab6c6d959d
- Δημιουργία script για παραγωγή documention του κώδικα - Μικρές διορθώσεις
14 lines
722 B
JavaScript
14 lines
722 B
JavaScript
/*global describe: true, expect: true, it: true, jasmine: true */
|
|
describe("escapeHtml plugin", function() {
|
|
var parser = new (require("jsdoc/src/parser")).Parser(),
|
|
plugin = require('plugins/escapeHtml'),
|
|
docSet;
|
|
|
|
require('jsdoc/plugins').installPlugins(['plugins/escapeHtml'], parser);
|
|
docSet = jasmine.getDocSetFromFile("plugins/escapeHtml.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.<br> Replaces <, & and newlines");
|
|
});
|
|
});
|