mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
19 lines
698 B
JavaScript
19 lines
698 B
JavaScript
(function() {
|
|
var srcParser = require('jsdoc/src/parser'),
|
|
doclets;
|
|
|
|
/**global*/ app = {jsdoc: {parser: new srcParser.Parser()} };
|
|
|
|
require('jsdoc/src/handlers');
|
|
|
|
doclets = app.jsdoc.parser.parse(BASEDIR + 'test/cases/file.js')
|
|
|
|
//dump(doclets);
|
|
|
|
test('When a file overview tag appears in a doclet.', function() {
|
|
var m = /(^file:).*([\/\\]cases[\/\\]file\.js)$/.exec(doclets[0].name);
|
|
assert.equal(m.length, 3, 'The name of the doclet should start with file: and should end with the path to the file.');
|
|
assert.equal(doclets[0].name, doclets[0].longname, 'The name and longname should be equal.');
|
|
});
|
|
|
|
})(); |