mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-27 02:12:54 +03:00
ab6c6d959d
- Δημιουργία script για παραγωγή documention του κώδικα - Μικρές διορθώσεις
16 lines
No EOL
689 B
JavaScript
16 lines
No EOL
689 B
JavaScript
/*global describe: true, expect: true, it: true */
|
|
describe("railsTemplate plugin", function() {
|
|
var parser = new (require("jsdoc/src/parser")).Parser(),
|
|
plugin = require('plugins/railsTemplate');
|
|
|
|
|
|
require('jsdoc/plugins').installPlugins(['plugins/railsTemplate'], parser);
|
|
require('jsdoc/src/handlers').attachTo(parser);
|
|
|
|
it("should remove <% %> rails template tags from the source of *.erb files", function() {
|
|
var path = require("path"),
|
|
docSet = parser.parse([path.join(__dirname, "plugins/test/fixtures/railsTemplate.js.erb")]);
|
|
|
|
expect(docSet[2].description).toEqual("Remove rails tags from the source input (e.g. )");
|
|
});
|
|
}); |